Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.002235/0.00224, allocations: 175.4 kB / 8.189 MB, free: 2.184 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.907/1.907, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001281/0.001281, allocations: 91.53 kB / 261.8 MB, free: 13.61 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.09784/0.09784, allocations: 12.59 MB / 322.3 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.976e-06/9.237e-06, allocations: 4 kB / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0894/0.08943, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2963/0.3858, allocations: 81.11 MB / 0.4979 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.3862, allocations: 79.41 kB / 0.498 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02314/0.4093, allocations: 5.497 MB / 0.5034 GB, free: 11.03 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.524e-05/0.4094, allocations: 3.688 kB / 0.5034 GB, free: 11.03 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.0005874/0.41, allocations: 487.5 kB / 0.5038 GB, free: 10.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.41, allocations: 15.31 kB / 0.5038 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.4101, allocations: 19.38 kB / 0.5039 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004927/0.4106, allocations: 265.7 kB / 0.5041 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.4107, allocations: 7.625 kB / 0.5041 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.4107, allocations: 3.719 kB / 0.5041 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001462/0.4109, allocations: 41.73 kB / 0.5042 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003209/0.4112, allocations: 160.7 kB / 0.5043 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.4112, allocations: 7.844 kB / 0.5043 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.4112, allocations: 0 / 0.5043 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.4113, allocations: 3.812 kB / 0.5043 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.4118, allocations: 347.4 kB / 0.5047 GB, free: 9.887 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.412, allocations: 123.4 kB / 0.5048 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.357e-05/0.4121, allocations: 54.14 kB / 0.5048 GB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.4121, allocations: 3.938 kB / 0.5048 GB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001121/0.4123, allocations: 74.09 kB / 0.5049 GB, free: 9.684 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.034e-06/0.4123, allocations: 0 / 0.5049 GB, free: 9.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003441/0.4126, allocations: 114.6 kB / 0.505 GB, free: 9.625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.4127, allocations: 158.2 kB / 0.5052 GB, free: 9.434 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.413, allocations: 234.4 kB / 0.5054 GB, free: 9.324 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.4131, allocations: 29.64 kB / 0.5054 GB, free: 9.293 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.038e-05/0.4131, allocations: 158.8 kB / 0.5056 GB, free: 9.133 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.807e-05/0.4132, allocations: 19.39 kB / 0.5056 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-06/0.4132, allocations: 0 / 0.5056 GB, free: 9.121 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.894e-05/0.4132, allocations: 318.7 kB / 0.5059 GB, free: 8.805 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.974e-05/0.4133, allocations: 22.88 kB / 0.5059 GB, free: 8.801 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.139e-05/0.4134, allocations: 78.53 kB / 0.506 GB, free: 8.723 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.635e-05/0.4135, allocations: 35.11 kB / 0.506 GB, free: 8.711 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4135, allocations: 0 / 0.506 GB, free: 8.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002183/0.4137, allocations: 103.6 kB / 0.5061 GB, free: 8.664 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.4138, allocations: 7.781 kB / 0.5061 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.4138, allocations: 3.594 kB / 0.5061 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.4138, allocations: 7.812 kB / 0.5061 GB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.4139, allocations: 11.77 kB / 0.5061 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.414, allocations: 3.781 kB / 0.5061 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.401e-05/0.4141, allocations: 7.828 kB / 0.5062 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.4141, allocations: 3.781 kB / 0.5062 GB, free: 8.648 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 6.645e-05/0.4142, allocations: 41.48 kB / 0.5062 GB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.4143, allocations: 75.19 kB / 0.5063 GB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002433/0.4145, allocations: 107 kB / 0.5064 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.4146, allocations: 3.875 kB / 0.5064 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4146, allocations: 0 / 0.5064 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.4146, allocations: 7.781 kB / 0.5064 GB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.4148, allocations: 203.6 kB / 0.5066 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.4148, allocations: 3.844 kB / 0.5066 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.482e-05/0.4149, allocations: 11.92 kB / 0.5066 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.4149, allocations: 7.781 kB / 0.5066 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.4149, allocations: 128 / 0.5066 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.4149, allocations: 7.844 kB / 0.5066 GB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4149, allocations: 0 / 0.5066 GB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002527/0.4152, allocations: 192.9 kB / 0.5068 GB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.4153, allocations: 115.5 kB / 0.5069 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.923e-05/0.4154, allocations: 7.891 kB / 0.5069 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.4155, allocations: 3.75 kB / 0.5069 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.36e-05/0.4156, allocations: 3.844 kB / 0.5069 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.4156, allocations: 11.64 kB / 0.5069 GB, free: 8.012 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002279/0.4159, allocations: 191.1 kB / 0.5071 GB, free: 7.914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003383/0.4162, allocations: 42.41 kB / 0.5071 GB, free: 7.898 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.0008285/0.417, allocations: 320.8 kB / 0.5075 GB, free: 7.656 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002366/0.4173, allocations: 69.59 kB / 0.5075 GB, free: 7.652 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4173, allocations: 384 / 0.5075 GB, free: 7.652 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.396e-05/0.4174, allocations: 38.59 kB / 0.5076 GB, free: 7.641 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005322/0.4179, allocations: 58.67 kB / 0.5076 GB, free: 7.629 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006481/0.4186, allocations: 275 kB / 0.5079 GB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002758/0.4189, allocations: 0.7646 MB / 0.5086 GB, free: 6.703 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4189, allocations: 0 / 0.5086 GB, free: 6.703 MB / 330.7 MB Notification: Performance of Templates: time 0.006682/0.4256, allocations: 2.803 MB / 0.5114 GB, free: 5.297 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches