Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") [: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.002545/0.002545, allocations: 174.1 kB / 8.19 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.864/1.864, 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.002476/0.002476, allocations: 90.94 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.1826/0.1826, allocations: 12.6 MB / 322.3 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.746e-06/8.877e-06, allocations: 0 / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09208, allocations: 50.37 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3166/0.4088, allocations: 81.1 MB / 0.4979 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.4091, allocations: 79.47 kB / 0.498 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02327/0.4324, allocations: 5.46 MB / 0.5033 GB, free: 11.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.4325, allocations: 3.875 kB / 0.5033 GB, free: 11.05 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.0006548/0.4331, allocations: 482.5 kB / 0.5038 GB, free: 10.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.4332, allocations: 11.66 kB / 0.5038 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.13e-05/0.4333, allocations: 19.41 kB / 0.5038 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004974/0.4338, allocations: 258.2 kB / 0.504 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.4338, allocations: 15.89 kB / 0.5041 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.4339, allocations: 7.781 kB / 0.5041 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001632/0.434, allocations: 38.62 kB / 0.5041 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003188/0.4344, allocations: 148.8 kB / 0.5042 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.4344, allocations: 0 / 0.5042 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.4344, allocations: 7.734 kB / 0.5043 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.4344, allocations: 0 / 0.5043 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005843/0.435, allocations: 430.5 kB / 0.5047 GB, free: 9.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.4352, allocations: 123.1 kB / 0.5048 GB, free: 9.734 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.625e-05/0.4354, allocations: 50.73 kB / 0.5048 GB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.4354, allocations: 7.844 kB / 0.5048 GB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001502/0.4356, allocations: 94.08 kB / 0.5049 GB, free: 9.617 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.904e-06/0.4356, allocations: 3.938 kB / 0.5049 GB, free: 9.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003217/0.4359, allocations: 106.8 kB / 0.505 GB, free: 9.562 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.436, allocations: 154.2 kB / 0.5052 GB, free: 9.375 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003266/0.4363, allocations: 238.8 kB / 0.5054 GB, free: 9.258 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.4363, allocations: 29.8 kB / 0.5054 GB, free: 9.223 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.254e-05/0.4364, allocations: 154.7 kB / 0.5056 GB, free: 9.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.193e-05/0.4364, allocations: 23.48 kB / 0.5056 GB, free: 9.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-06/0.4365, allocations: 0 / 0.5056 GB, free: 9.055 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.276e-05/0.4365, allocations: 311 kB / 0.5059 GB, free: 8.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.455e-05/0.4366, allocations: 26.77 kB / 0.5059 GB, free: 8.734 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.304e-05/0.4367, allocations: 77.16 kB / 0.506 GB, free: 8.664 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.812e-05/0.4368, allocations: 26.7 kB / 0.506 GB, free: 8.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.4368, allocations: 7.594 kB / 0.506 GB, free: 8.656 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002212/0.437, allocations: 97.77 kB / 0.5061 GB, free: 8.609 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.4371, allocations: 10.03 kB / 0.5061 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4371, allocations: 3.844 kB / 0.5061 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.4371, allocations: 0 / 0.5061 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.4372, allocations: 15.67 kB / 0.5062 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.4373, allocations: 7.781 kB / 0.5062 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.455e-05/0.4374, allocations: 7.75 kB / 0.5062 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.4374, allocations: 3.844 kB / 0.5062 GB, free: 8.594 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.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.763e-05/0.4375, allocations: 36.55 kB / 0.5062 GB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.4376, allocations: 71.94 kB / 0.5063 GB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002429/0.4378, allocations: 99.27 kB / 0.5064 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.4379, allocations: 3.844 kB / 0.5064 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4379, allocations: 0 / 0.5064 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4379, allocations: 3.969 kB / 0.5064 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.4381, allocations: 209 kB / 0.5066 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.4382, allocations: 3.875 kB / 0.5066 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.423e-05/0.4382, allocations: 10.44 kB / 0.5066 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.4382, allocations: 11.77 kB / 0.5066 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.4383, allocations: 3.938 kB / 0.5066 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.4383, allocations: 3.719 kB / 0.5066 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4383, allocations: 0 / 0.5066 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002626/0.4386, allocations: 192.4 kB / 0.5068 GB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.4387, allocations: 117.4 kB / 0.5069 GB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.4388, allocations: 3.844 kB / 0.5069 GB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.4389, allocations: 7.828 kB / 0.5069 GB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.439, allocations: 3.75 kB / 0.5069 GB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.439, allocations: 10.02 kB / 0.5069 GB, free: 7.965 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002326/0.4392, allocations: 192.4 kB / 0.5071 GB, free: 7.863 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003551/0.4396, allocations: 42.28 kB / 0.5072 GB, free: 7.852 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.0008562/0.4405, allocations: 316 kB / 0.5075 GB, free: 7.605 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000252/0.4407, allocations: 72.33 kB / 0.5075 GB, free: 7.598 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.4407, allocations: 0 / 0.5075 GB, free: 7.598 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.472e-05/0.4408, allocations: 43.05 kB / 0.5076 GB, free: 7.582 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.4414, allocations: 51.88 kB / 0.5076 GB, free: 7.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006891/0.4421, allocations: 274.3 kB / 0.5079 GB, free: 7.387 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000286/0.4424, allocations: 0.7686 MB / 0.5086 GB, free: 6.648 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4424, allocations: 0 / 0.5086 GB, free: 6.648 MB / 330.7 MB Notification: Performance of Templates: time 0.006563/0.449, allocations: 2.709 MB / 0.5113 GB, free: 5.289 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches