Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") [: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.002684/0.002684, allocations: 177 kB / 8.191 MB, free: 2.102 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.745/1.745, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001268/0.001268, allocations: 85.06 kB / 261.8 MB, free: 13.64 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.09999/0.09999, allocations: 12.58 MB / 322.3 MB, free: 1 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.544e-06, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08377/0.0838, allocations: 50.37 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2934/0.3772, allocations: 81.13 MB / 0.4979 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.3776, allocations: 86.09 kB / 0.498 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02862/0.4062, allocations: 5.654 MB / 0.5035 GB, free: 11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.806e-05/0.4063, allocations: 7.812 kB / 0.5035 GB, free: 11 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009725/0.4073, allocations: 0.4952 MB / 0.504 GB, free: 10.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.4074, allocations: 11.34 kB / 0.504 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.4076, allocations: 26.84 kB / 0.5041 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008809/0.4085, allocations: 297.5 kB / 0.5043 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.4085, allocations: 0 / 0.5043 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.4086, allocations: 7.406 kB / 0.5043 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002521/0.4088, allocations: 38.17 kB / 0.5044 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.4094, allocations: 174.6 kB / 0.5045 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.4094, allocations: 0 / 0.5045 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.4095, allocations: 0 / 0.5045 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.4095, allocations: 3.844 kB / 0.5045 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.4105, allocations: 386.5 kB / 0.5049 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.4109, allocations: 127.6 kB / 0.505 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.4111, allocations: 57.98 kB / 0.5051 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.934e-05/0.4111, allocations: 7.359 kB / 0.5051 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.4114, allocations: 77.83 kB / 0.5052 GB, free: 9.602 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 3.747e-06/0.4114, allocations: 0 / 0.5052 GB, free: 9.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.000556/0.412, allocations: 122.1 kB / 0.5053 GB, free: 9.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.005e-05/0.4121, allocations: 195.4 kB / 0.5055 GB, free: 9.316 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007092/0.4128, allocations: 285.2 kB / 0.5058 GB, free: 9.188 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.4129, allocations: 25.7 kB / 0.5058 GB, free: 9.156 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.859e-05/0.4129, allocations: 162.7 kB / 0.5059 GB, free: 8.996 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.413, allocations: 15.53 kB / 0.5059 GB, free: 8.988 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.427e-05/0.413, allocations: 0 / 0.5059 GB, free: 8.988 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.457e-05/0.4131, allocations: 318.7 kB / 0.5062 GB, free: 8.672 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.4133, allocations: 19.09 kB / 0.5063 GB, free: 8.672 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.4135, allocations: 110.7 kB / 0.5064 GB, free: 8.578 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/0.4136, allocations: 30.92 kB / 0.5064 GB, free: 8.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.4137, allocations: 3.906 kB / 0.5064 GB, free: 8.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004169/0.4141, allocations: 113 kB / 0.5065 GB, free: 8.516 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.4141, allocations: 3.688 kB / 0.5065 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4142, allocations: 0 / 0.5065 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.4142, allocations: 3.812 kB / 0.5065 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.4146, allocations: 23.08 kB / 0.5065 GB, free: 8.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.4146, allocations: 3.938 kB / 0.5065 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.4148, allocations: 15.53 kB / 0.5066 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.4149, allocations: 7.781 kB / 0.5066 GB, free: 8.496 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001141/0.415, allocations: 41.66 kB / 0.5066 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.4152, allocations: 71.8 kB / 0.5067 GB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002983/0.4155, allocations: 112.2 kB / 0.5068 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.4155, allocations: 3.75 kB / 0.5068 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4155, allocations: 0 / 0.5068 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4155, allocations: 3.719 kB / 0.5068 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002305/0.4158, allocations: 230.2 kB / 0.507 GB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4158, allocations: 7.781 kB / 0.507 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.4159, allocations: 15.16 kB / 0.507 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.416, allocations: 3.812 kB / 0.507 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.416, allocations: 7.859 kB / 0.507 GB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.416, allocations: 7.844 kB / 0.5071 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.416, allocations: 0 / 0.5071 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002874/0.4163, allocations: 208.1 kB / 0.5073 GB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.4165, allocations: 123.8 kB / 0.5074 GB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.589e-05/0.4165, allocations: 3.906 kB / 0.5074 GB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.4167, allocations: 3.812 kB / 0.5074 GB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.241e-05/0.4167, allocations: 15.7 kB / 0.5074 GB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.4168, allocations: 7.656 kB / 0.5074 GB, free: 7.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000303/0.4171, allocations: 232 kB / 0.5076 GB, free: 7.742 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004039/0.4175, allocations: 50.19 kB / 0.5077 GB, free: 7.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0008763/0.4184, allocations: 328.6 kB / 0.508 GB, free: 7.484 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002937/0.4187, allocations: 82.81 kB / 0.5081 GB, free: 7.473 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.4187, allocations: 4.375 kB / 0.5081 GB, free: 7.469 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.47e-05/0.4188, allocations: 29.31 kB / 0.5081 GB, free: 7.469 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005839/0.4194, allocations: 69.89 kB / 0.5082 GB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008127/0.4202, allocations: 326.9 kB / 0.5085 GB, free: 7.246 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003341/0.4206, allocations: 0.7837 MB / 0.5092 GB, free: 6.5 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.4206, allocations: 0 / 0.5092 GB, free: 6.5 MB / 330.7 MB Notification: Performance of Templates: time 0.007722/0.4283, allocations: 3.109 MB / 0.5123 GB, free: 4.945 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches