Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001489/0.001489, allocations: 186.1 kB / 16.44 MB, free: 5.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.925/1.925, allocations: 205.4 MB / 222.6 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 92.95 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1015/0.1015, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005254/0.0005254, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08417, allocations: 50.38 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.4964, allocations: 77.37 MB / 0.5075 GB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.4967, allocations: 74.44 kB / 0.5076 GB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001851/0.4985, allocations: 0.6695 MB / 0.5083 GB, free: 12.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4986, allocations: 0 / 0.5083 GB, free: 12.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.4986, allocations: 3.844 kB / 0.5083 GB, free: 12.53 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002781/0.4989, allocations: 333.8 kB / 0.5086 GB, free: 12.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.253e-05/0.499, allocations: 7.688 kB / 0.5086 GB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.499, allocations: 11.88 kB / 0.5086 GB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.4992, allocations: 169.1 kB / 0.5088 GB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.4992, allocations: 0 / 0.5088 GB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.4992, allocations: 7.828 kB / 0.5088 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.4996, allocations: 101.8 kB / 0.5089 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.4996, allocations: 4 kB / 0.5089 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.4996, allocations: 0 / 0.5089 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.4996, allocations: 0 / 0.5089 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.728e-05/0.4997, allocations: 21.81 kB / 0.5089 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/0.4999, allocations: 150.7 kB / 0.509 GB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.5001, allocations: 53.22 kB / 0.5091 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.5001, allocations: 0 / 0.5091 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.5001, allocations: 38.33 kB / 0.5091 GB, free: 11.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.563e-06/0.5001, allocations: 0 / 0.5091 GB, free: 11.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002444/0.5004, allocations: 69.53 kB / 0.5092 GB, free: 11.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.5004, allocations: 51.41 kB / 0.5092 GB, free: 11.56 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.774e-05/0.5005, allocations: 103.6 kB / 0.5093 GB, free: 11.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.028e-05/0.5005, allocations: 33.67 kB / 0.5094 GB, free: 11.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.205e-05/0.5006, allocations: 150.6 kB / 0.5095 GB, free: 11.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-06/0.5006, allocations: 0 / 0.5095 GB, free: 11.28 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-06/0.5006, allocations: 3.875 kB / 0.5095 GB, free: 11.28 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.853e-05/0.5007, allocations: 313.6 kB / 0.5098 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.41e-05/0.5007, allocations: 5.844 kB / 0.5098 GB, free: 10.97 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.787e-05/0.5007, allocations: 27.16 kB / 0.5098 GB, free: 10.94 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.504e-05/0.5008, allocations: 11.78 kB / 0.5099 GB, free: 10.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.5008, allocations: 0 / 0.5099 GB, free: 10.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.989e-05/0.5009, allocations: 53.5 kB / 0.5099 GB, free: 10.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.5009, allocations: 3.844 kB / 0.5099 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.5009, allocations: 7.797 kB / 0.5099 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.5009, allocations: 128 / 0.5099 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.133e-05/0.501, allocations: 7.844 kB / 0.5099 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.501, allocations: 3.094 kB / 0.5099 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.721e-05/0.5011, allocations: 3.188 kB / 0.5099 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.5011, allocations: 3.812 kB / 0.5099 GB, free: 10.89 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.83e-05/0.5012, allocations: 125.3 kB / 0.5101 GB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.5013, allocations: 49.91 kB / 0.5101 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.517e-05/0.5013, allocations: 13.66 kB / 0.5101 GB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.5014, allocations: 3.953 kB / 0.5101 GB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.5014, allocations: 7.938 kB / 0.5101 GB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.5014, allocations: 0 / 0.5101 GB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.306e-05/0.5015, allocations: 161.6 kB / 0.5103 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.5015, allocations: 0 / 0.5103 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.956e-05/0.5015, allocations: 0 / 0.5103 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.5015, allocations: 0 / 0.5103 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.5015, allocations: 3.25 kB / 0.5103 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.5016, allocations: 3.844 kB / 0.5103 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5016, allocations: 3.953 kB / 0.5103 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001507/0.5017, allocations: 88.81 kB / 0.5104 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.458e-05/0.5018, allocations: 81.02 kB / 0.5105 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.5018, allocations: 0 / 0.5105 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.317e-05/0.5018, allocations: 3.844 kB / 0.5105 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-06/0.5018, allocations: 3.141 kB / 0.5105 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.5019, allocations: 3.953 kB / 0.5105 GB, free: 10.34 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.33e-05/0.5019, allocations: 82.19 kB / 0.5105 GB, free: 10.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5019, allocations: 0 / 0.5105 GB, free: 10.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000234/0.5021, allocations: 7.844 kB / 0.5106 GB, free: 10.26 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.178e-05/0.5022, allocations: 90.72 kB / 0.5106 GB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001293/0.5024, allocations: 27.94 kB / 0.5107 GB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5024, allocations: 0 / 0.5107 GB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.62e-07/0.5024, allocations: 0 / 0.5107 GB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.5026, allocations: 22.03 kB / 0.5107 GB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003083/0.503, allocations: 152.1 kB / 0.5108 GB, free: 10.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.5031, allocations: 0.6823 MB / 0.5115 GB, free: 9.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.224e-05/0.5031, allocations: 7.438 kB / 0.5115 GB, free: 9.309 MB / 330.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5031, allocations: 0 / 0.5115 GB, free: 9.309 MB / 330.7 MB Notification: Performance of Templates: time 0.001999/0.5052, allocations: 0.5211 MB / 0.512 GB, free: 9.289 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches