Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001581/0.001581, allocations: 190.7 kB / 7.846 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.245/1.245, allocations: 205.2 MB / 213.5 MB, free: 13.92 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.0009084/0.0009085, allocations: 86.84 kB / 261.5 MB, free: 13.55 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.0828/0.0828, allocations: 12.59 MB / 322 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.442e-06/6.462e-06, allocations: 0 / 378.4 MB, free: 75.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3197/0.4242, allocations: 81.46 MB / 0.4983 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003537/0.4246, allocations: 81.72 kB / 0.4983 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02157/0.4462, allocations: 7.989 MB / 0.5062 GB, free: 10.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.256e-05/0.4463, allocations: 4.594 kB / 0.5062 GB, free: 10.36 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005518/0.4469, allocations: 0.5015 MB / 0.5066 GB, free: 9.887 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.4469, allocations: 11.53 kB / 0.5067 GB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.998e-05/0.447, allocations: 23.06 kB / 0.5067 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.4474, allocations: 272.5 kB / 0.5069 GB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.4474, allocations: 7.438 kB / 0.5069 GB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.4475, allocations: 7.75 kB / 0.507 GB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001548/0.4476, allocations: 64.56 kB / 0.507 GB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004303/0.4481, allocations: 276.6 kB / 0.5073 GB, free: 9.488 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.4481, allocations: 0 / 0.5073 GB, free: 9.488 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.4481, allocations: 3.938 kB / 0.5073 GB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.4481, allocations: 7.562 kB / 0.5073 GB, free: 9.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005139/0.4487, allocations: 354.3 kB / 0.5076 GB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003792/0.4491, allocations: 163.2 kB / 0.5078 GB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.4492, allocations: 71.33 kB / 0.5079 GB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.4493, allocations: 6.922 kB / 0.5079 GB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001314/0.4494, allocations: 67.75 kB / 0.5079 GB, free: 9.004 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.983e-06/0.4494, allocations: 0.5 kB / 0.5079 GB, free: 9.004 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004025/0.4498, allocations: 156 kB / 0.5081 GB, free: 8.941 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/0.4499, allocations: 138.1 kB / 0.5082 GB, free: 8.781 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/0.4502, allocations: 243.2 kB / 0.5084 GB, free: 8.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.4502, allocations: 27.05 kB / 0.5085 GB, free: 8.629 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.081e-05/0.4503, allocations: 96.06 kB / 0.5086 GB, free: 8.543 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.989e-05/0.4503, allocations: 27.83 kB / 0.5086 GB, free: 8.527 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.4503, allocations: 4 kB / 0.5086 GB, free: 8.523 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.885e-05/0.4504, allocations: 334.2 kB / 0.5089 GB, free: 8.203 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.604e-05/0.4505, allocations: 31.62 kB / 0.5089 GB, free: 8.199 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.4506, allocations: 160.8 kB / 0.5091 GB, free: 8.031 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.44e-05/0.4507, allocations: 54.88 kB / 0.5091 GB, free: 8.016 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4507, allocations: 1.312 kB / 0.5091 GB, free: 8.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00029/0.451, allocations: 189.1 kB / 0.5093 GB, free: 7.938 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.451, allocations: 9.031 kB / 0.5093 GB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4511, allocations: 8.047 kB / 0.5093 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.4511, allocations: 6.438 kB / 0.5093 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.4512, allocations: 22.97 kB / 0.5094 GB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.4512, allocations: 9.672 kB / 0.5094 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.4513, allocations: 15 kB / 0.5094 GB, free: 7.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.4514, allocations: 13.22 kB / 0.5094 GB, free: 7.91 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,sample.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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 8.834e-05/0.4515, allocations: 119.3 kB / 0.5095 GB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.4516, allocations: 119 kB / 0.5096 GB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.4518, allocations: 106 kB / 0.5097 GB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.4518, allocations: 3.188 kB / 0.5097 GB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4519, allocations: 1.094 kB / 0.5097 GB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.4519, allocations: 4.938 kB / 0.5097 GB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.4521, allocations: 215 kB / 0.5099 GB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.4521, allocations: 1.125 kB / 0.5099 GB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.491e-05/0.4521, allocations: 11.47 kB / 0.51 GB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.4521, allocations: 1.125 kB / 0.51 GB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.4522, allocations: 9.391 kB / 0.51 GB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.4522, allocations: 1.969 kB / 0.51 GB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4522, allocations: 4.969 kB / 0.51 GB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002672/0.4525, allocations: 224.9 kB / 0.5102 GB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.72e-05/0.4526, allocations: 124.5 kB / 0.5103 GB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.33e-05/0.4526, allocations: 3.531 kB / 0.5103 GB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.054e-05/0.4527, allocations: 7.25 kB / 0.5103 GB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.4528, allocations: 12.45 kB / 0.5103 GB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.4528, allocations: 6.625 kB / 0.5103 GB, free: 7.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001705/0.453, allocations: 189.3 kB / 0.5105 GB, free: 7.117 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003135/0.4533, allocations: 42.09 kB / 0.5106 GB, free: 7.109 MB / 330.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: 20 ($whenCondition1,sample.u,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.0006718/0.454, allocations: 340.2 kB / 0.5109 GB, free: 6.844 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002552/0.4542, allocations: 127 kB / 0.511 GB, free: 6.824 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.4542, allocations: 0 / 0.511 GB, free: 6.824 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.545e-05/0.4543, allocations: 26.38 kB / 0.511 GB, free: 6.824 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.4547, allocations: 91.78 kB / 0.5111 GB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005714/0.4553, allocations: 284.3 kB / 0.5114 GB, free: 6.652 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.4556, allocations: 0.7824 MB / 0.5121 GB, free: 5.906 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4556, allocations: 0 / 0.5121 GB, free: 5.906 MB / 330.7 MB Notification: Performance of Templates: time 0.006552/0.4622, allocations: 2.868 MB / 0.5149 GB, free: 4.48 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches