Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.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.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001471/0.001471, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.043/2.043, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001077/0.001077, allocations: 82.72 kB / 267.6 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09923/0.09923, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.892e-05/3.911e-05, allocations: 4 kB / 386 MB, free: 1.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3362, allocations: 50.37 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1551/0.4913, allocations: 81.77 MB / 0.506 GB, free: 12.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/0.4917, allocations: 79.95 kB / 0.5061 GB, free: 12.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02849/0.5202, allocations: 6.319 MB / 0.5122 GB, free: 5.863 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5203, allocations: 0 / 0.5122 GB, free: 5.863 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.78e-05/0.5203, allocations: 7.984 kB / 0.5122 GB, free: 5.855 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007215/0.5211, allocations: 471.7 kB / 0.5127 GB, free: 5.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.5211, allocations: 8.031 kB / 0.5127 GB, free: 5.336 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.119e-05/0.5212, allocations: 19.72 kB / 0.5127 GB, free: 5.316 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.5218, allocations: 257.7 kB / 0.513 GB, free: 5.027 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.5218, allocations: 7.953 kB / 0.513 GB, free: 5.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.5218, allocations: 4 kB / 0.513 GB, free: 5.016 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003878/0.5222, allocations: 150.7 kB / 0.5131 GB, free: 4.844 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.5223, allocations: 0 / 0.5131 GB, free: 4.844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.5223, allocations: 8 kB / 0.5131 GB, free: 4.836 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.5223, allocations: 0 / 0.5131 GB, free: 4.836 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.5224, allocations: 28 kB / 0.5131 GB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006597/0.5231, allocations: 370.4 kB / 0.5135 GB, free: 4.391 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.5234, allocations: 107.9 kB / 0.5136 GB, free: 4.258 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.5235, allocations: 46.69 kB / 0.5136 GB, free: 4.203 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.5235, allocations: 0 / 0.5136 GB, free: 4.203 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.5237, allocations: 79.23 kB / 0.5137 GB, free: 4.113 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.074e-06/0.5237, allocations: 0 / 0.5137 GB, free: 4.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003455/0.5241, allocations: 113.4 kB / 0.5138 GB, free: 3.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.343e-05/0.5242, allocations: 136.5 kB / 0.514 GB, free: 3.832 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004241/0.5246, allocations: 233.1 kB / 0.5142 GB, free: 3.598 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.5247, allocations: 25.7 kB / 0.5142 GB, free: 3.566 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.5248, allocations: 182.5 kB / 0.5144 GB, free: 3.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.97e-05/0.5249, allocations: 23.77 kB / 0.5144 GB, free: 3.363 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-06/0.5249, allocations: 0 / 0.5144 GB, free: 3.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.525, allocations: 322.9 kB / 0.5147 GB, free: 3.039 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.721e-05/0.5251, allocations: 19.98 kB / 0.5147 GB, free: 3.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.5252, allocations: 69.95 kB / 0.5148 GB, free: 2.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.329e-05/0.5253, allocations: 31.12 kB / 0.5148 GB, free: 2.902 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.5253, allocations: 0 / 0.5148 GB, free: 2.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002424/0.5256, allocations: 105.5 kB / 0.5149 GB, free: 2.793 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.5256, allocations: 4 kB / 0.5149 GB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5256, allocations: 0 / 0.5149 GB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5257, allocations: 4 kB / 0.5149 GB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.5258, allocations: 12.12 kB / 0.5149 GB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.5258, allocations: 11.98 kB / 0.515 GB, free: 2.762 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.526, allocations: 8.125 kB / 0.515 GB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.526, allocations: 4 kB / 0.515 GB, free: 2.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,superSample.y,superSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001064/0.5261, allocations: 124.6 kB / 0.5151 GB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.5263, allocations: 65.48 kB / 0.5151 GB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003034/0.5266, allocations: 119.4 kB / 0.5153 GB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.5266, allocations: 4 kB / 0.5153 GB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.5266, allocations: 64 / 0.5153 GB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5266, allocations: 4 kB / 0.5153 GB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00028/0.5269, allocations: 229.5 kB / 0.5155 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.5269, allocations: 0 / 0.5155 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-05/0.527, allocations: 8 kB / 0.5155 GB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.527, allocations: 0 / 0.5155 GB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.527, allocations: 4 kB / 0.5155 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.5271, allocations: 7.984 kB / 0.5155 GB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5271, allocations: 3.938 kB / 0.5155 GB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003258/0.5274, allocations: 178 kB / 0.5157 GB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.5276, allocations: 120.7 kB / 0.5158 GB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.555e-05/0.5276, allocations: 7.938 kB / 0.5158 GB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.5277, allocations: 8 kB / 0.5158 GB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.802e-05/0.5278, allocations: 7.984 kB / 0.5158 GB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.5278, allocations: 8 kB / 0.5158 GB, free: 1.746 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003057/0.5282, allocations: 193.4 kB / 0.516 GB, free: 1.555 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5282, allocations: 0 / 0.516 GB, free: 1.555 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003694/0.5286, allocations: 32 kB / 0.516 GB, free: 1.523 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample.y,sample.y,superSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.001132/0.5297, allocations: 381 kB / 0.5164 GB, free: 1.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002747/0.53, allocations: 75.84 kB / 0.5165 GB, free: 1.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.53, allocations: 256 / 0.5165 GB, free: 1.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.801e-05/0.5301, allocations: 28 kB / 0.5165 GB, free: 1.043 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004799/0.5306, allocations: 52.5 kB / 0.5166 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000663/0.5313, allocations: 266.4 kB / 0.5168 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2886/0.8199, allocations: 0.734 MB / 0.5175 GB, free: 85.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.8201, allocations: 22.34 kB / 0.5175 GB, free: 85.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.302e-06/0.8201, allocations: 0 / 0.5175 GB, free: 85.71 MB / 362.7 MB Notification: Performance of Templates: time 0.01074/0.8308, allocations: 2.604 MB / 0.5201 GB, free: 85.59 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches