Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001974, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.516/1.516, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 59.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2604, allocations: 50.55 MB / 409 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002838/0.2632, allocations: 1.44 MB / 410.5 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002563/0.2635, allocations: 43.84 kB / 410.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.145e-05/0.2637, allocations: 4 kB / 410.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.869e-05/0.2637, allocations: 3.938 kB / 410.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.166e-05/0.2638, allocations: 7.922 kB / 410.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.2641, allocations: 23.97 kB / 410.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.2642, allocations: 35.92 kB / 410.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.2644, allocations: 15.97 kB / 410.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.333e-05/0.2645, allocations: 19.94 kB / 410.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.246e-05/0.2645, allocations: 15.92 kB / 410.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.2645, allocations: 4 kB / 410.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.545e-05/0.2646, allocations: 4 kB / 410.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.44e-05/0.2646, allocations: 11.92 kB / 410.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.419e-05/0.2647, allocations: 15.92 kB / 410.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.2648, allocations: 39.88 kB / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.2648, allocations: 0 / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2648, allocations: 3.938 kB / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.2648, allocations: 0 / 410.7 MB, free: 15.72 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005593/0.2654, allocations: 354.5 kB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.2654, allocations: 12.03 kB / 411.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.463e-05/0.2655, allocations: 34.75 kB / 411.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.073e-05/0.2655, allocations: 8.891 kB / 411.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.2658, allocations: 180.3 kB / 411.3 MB, free: 15.05 MB / 334.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.266, allocations: 38.25 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.266, allocations: 4.375 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003351/0.2663, allocations: 139.5 kB / 411.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.2663, allocations: 0 / 411.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.2663, allocations: 0 / 411.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2664, allocations: 0 / 411.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.86e-05/0.2664, allocations: 15.98 kB / 411.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000174/0.2666, allocations: 161.6 kB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002311/0.2669, allocations: 147.7 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.379e-05/0.2669, allocations: 28.83 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.2669, allocations: 0 / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/0.267, allocations: 38.5 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.133e-06/0.267, allocations: 0 / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002492/0.2673, allocations: 69.69 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.278e-05/0.2673, allocations: 67.28 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.2675, allocations: 110.2 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.2675, allocations: 25.7 kB / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.614e-05/0.2675, allocations: 84.14 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.2676, allocations: 7.938 kB / 412.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-05/0.2676, allocations: 21.72 kB / 412.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.2678, allocations: 314.8 kB / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.18e-05/0.2679, allocations: 7.984 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.262e-05/0.2679, allocations: 40.3 kB / 412.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.863e-05/0.268, allocations: 52.3 kB / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.268, allocations: 0 / 412.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001052/0.2681, allocations: 77.52 kB / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.2682, allocations: 15.92 kB / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2682, allocations: 0 / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.2682, allocations: 0 / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.481e-05/0.2682, allocations: 4 kB / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.2683, allocations: 4 kB / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.422e-05/0.2683, allocations: 0 / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.2683, allocations: 4 kB / 412.7 MB, free: 13.4 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.236e-05/0.2684, allocations: 129.4 kB / 412.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.2685, allocations: 65.62 kB / 412.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.423e-05/0.2685, allocations: 3.969 kB / 412.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2686, allocations: 0 / 412.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2686, allocations: 0 / 412.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2686, allocations: 7.984 kB / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.2687, allocations: 161.7 kB / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2687, allocations: 0 / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.604e-06/0.2687, allocations: 0 / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.2687, allocations: 7.938 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.2688, allocations: 0 / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2688, allocations: 11.81 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2688, allocations: 4 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.269, allocations: 85.08 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.527e-05/0.2691, allocations: 81.05 kB / 413.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.849e-05/0.2691, allocations: 11.98 kB / 413.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.747e-05/0.2691, allocations: 4 kB / 413.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.649e-06/0.2692, allocations: 8 kB / 413.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-06/0.2692, allocations: 0 / 413.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.139e-05/0.2692, allocations: 87.27 kB / 413.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2692, allocations: 0 / 413.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001925/0.2694, allocations: 8 kB / 413.4 MB, free: 12.63 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005646/0.27, allocations: 0.6554 MB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001276/0.2701, allocations: 35.92 kB / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2701, allocations: 0 / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.52e-07/0.2701, allocations: 0 / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007938/0.2709, allocations: 0.7142 MB / 414.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.2721, allocations: 1.219 MB / 416 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.2725, allocations: 0.6807 MB / 416.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.922e-05/0.2725, allocations: 4 kB / 416.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.819e-05/0.2725, allocations: 19.42 kB / 416.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2726, allocations: 0 / 416.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.2946, allocations: 1.687 MB / 418.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.344, allocations: 4.047 kB / 418.4 MB, free: 7.574 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1)