Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002415/0.002415, allocations: 175.4 kB / 8.192 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.931/1.931, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001222/0.001222, allocations: 104.2 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09695/0.09695, allocations: 12.59 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.394e-06/7.534e-06, allocations: 0 / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.08935, allocations: 50.37 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3017/0.3912, allocations: 81.54 MB / 0.4983 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.3915, allocations: 86.2 kB / 0.4984 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0349/0.4264, allocations: 8.218 MB / 0.5064 GB, free: 10 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.378e-05/0.4265, allocations: 7.781 kB / 0.5064 GB, free: 10 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.0007794/0.4273, allocations: 0.5216 MB / 0.5069 GB, free: 9.508 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.4274, allocations: 11.55 kB / 0.507 GB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.183e-05/0.4275, allocations: 30.62 kB / 0.507 GB, free: 9.488 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006007/0.4281, allocations: 307.7 kB / 0.5073 GB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.4281, allocations: 3.781 kB / 0.5073 GB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.439e-05/0.4282, allocations: 19.19 kB / 0.5073 GB, free: 9.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002627/0.4284, allocations: 76.14 kB / 0.5074 GB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005946/0.429, allocations: 295.6 kB / 0.5077 GB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.4291, allocations: 0 / 0.5077 GB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.4291, allocations: 0 / 0.5077 GB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.4291, allocations: 7.75 kB / 0.5077 GB, free: 9.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000704/0.4298, allocations: 401.6 kB / 0.508 GB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.4302, allocations: 175.7 kB / 0.5082 GB, free: 8.664 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.4305, allocations: 85.03 kB / 0.5083 GB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.501e-05/0.4305, allocations: 2.875 kB / 0.5083 GB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000153/0.4307, allocations: 78.36 kB / 0.5084 GB, free: 8.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.256e-06/0.4307, allocations: 0 / 0.5084 GB, free: 8.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005946/0.4313, allocations: 174 kB / 0.5085 GB, free: 8.508 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.947e-05/0.4314, allocations: 164 kB / 0.5087 GB, free: 8.316 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/0.4319, allocations: 299.2 kB / 0.509 GB, free: 8.188 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.432, allocations: 30.98 kB / 0.509 GB, free: 8.156 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.589e-05/0.432, allocations: 160.3 kB / 0.5092 GB, free: 7.996 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.4321, allocations: 28.03 kB / 0.5092 GB, free: 7.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/0.4321, allocations: 0.9062 kB / 0.5092 GB, free: 7.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.545e-05/0.4322, allocations: 320.3 kB / 0.5095 GB, free: 7.664 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.4323, allocations: 36.8 kB / 0.5095 GB, free: 7.656 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.4326, allocations: 189.2 kB / 0.5097 GB, free: 7.465 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.4327, allocations: 61.09 kB / 0.5098 GB, free: 7.449 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.4328, allocations: 5.156 kB / 0.5098 GB, free: 7.445 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004673/0.4332, allocations: 176 kB / 0.5099 GB, free: 7.379 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.4333, allocations: 7.969 kB / 0.51 GB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.4333, allocations: 12.16 kB / 0.51 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.4333, allocations: 6.812 kB / 0.51 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/0.4336, allocations: 45.27 kB / 0.51 GB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.4337, allocations: 17.2 kB / 0.51 GB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.4338, allocations: 10.69 kB / 0.51 GB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.4339, allocations: 10.22 kB / 0.51 GB, free: 7.344 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.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],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 0.0001364/0.434, allocations: 49.61 kB / 0.5101 GB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003408/0.4344, allocations: 134.9 kB / 0.5102 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003643/0.4348, allocations: 117.4 kB / 0.5103 GB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.4348, allocations: 2.844 kB / 0.5103 GB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4348, allocations: 1.141 kB / 0.5103 GB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.4348, allocations: 3.984 kB / 0.5103 GB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002967/0.4351, allocations: 245.1 kB / 0.5106 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.4351, allocations: 0.9062 kB / 0.5106 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.4354, allocations: 30.41 kB / 0.5106 GB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.337e-06/0.4355, allocations: 6.188 kB / 0.5106 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.4355, allocations: 6.094 kB / 0.5106 GB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.4355, allocations: 2.188 kB / 0.5106 GB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.4355, allocations: 1.094 kB / 0.5106 GB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004944/0.436, allocations: 247.1 kB / 0.5109 GB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001933/0.4362, allocations: 132.5 kB / 0.511 GB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/0.4363, allocations: 11.11 kB / 0.511 GB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.4365, allocations: 3.094 kB / 0.511 GB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.869e-05/0.4366, allocations: 11.3 kB / 0.511 GB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/0.4366, allocations: 5.812 kB / 0.511 GB, free: 6.684 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003967/0.4371, allocations: 241.1 kB / 0.5112 GB, free: 6.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005282/0.4376, allocations: 58.62 kB / 0.5113 GB, free: 6.57 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.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.0009352/0.4385, allocations: 337.5 kB / 0.5116 GB, free: 6.305 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004939/0.4391, allocations: 152.2 kB / 0.5118 GB, free: 6.281 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.4391, allocations: 1.25 kB / 0.5118 GB, free: 6.281 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.083e-05/0.4392, allocations: 23.81 kB / 0.5118 GB, free: 6.281 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/0.4399, allocations: 110.1 kB / 0.5119 GB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.441, allocations: 382.8 kB / 0.5123 GB, free: 6.043 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.4414, allocations: 0.799 MB / 0.513 GB, free: 5.293 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.4414, allocations: 0 / 0.513 GB, free: 5.293 MB / 330.7 MB Notification: Performance of Templates: time 0.009293/0.4507, allocations: 3.625 MB / 0.5166 GB, free: 3.477 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches