Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.002239/0.002239, allocations: 172.4 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.718/1.718, 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.001269/0.001269, allocations: 93.11 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.1007/0.1007, allocations: 12.58 MB / 322.3 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.646e-06/8.736e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08489/0.08493, allocations: 50.36 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2808/0.3658, allocations: 81.2 MB / 0.498 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/0.3662, allocations: 85.31 kB / 0.4981 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02339/0.3896, allocations: 5.65 MB / 0.5036 GB, free: 10.87 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.622e-05/0.3896, allocations: 3.875 kB / 0.5036 GB, free: 10.87 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.0006227/0.3903, allocations: 0.4922 MB / 0.5041 GB, free: 10.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3903, allocations: 11.67 kB / 0.5041 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.36e-05/0.3904, allocations: 27.19 kB / 0.5041 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.3909, allocations: 287.9 kB / 0.5044 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.391, allocations: 7.531 kB / 0.5044 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.391, allocations: 3.812 kB / 0.5044 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001758/0.3912, allocations: 44.7 kB / 0.5044 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.3915, allocations: 160.6 kB / 0.5046 GB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3916, allocations: 0 / 0.5046 GB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.3916, allocations: 0 / 0.5046 GB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.3916, allocations: 0 / 0.5046 GB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006043/0.3922, allocations: 473.1 kB / 0.505 GB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.3924, allocations: 129.9 kB / 0.5052 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.3926, allocations: 62.73 kB / 0.5052 GB, free: 9.453 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.3926, allocations: 0 / 0.5052 GB, free: 9.453 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/0.3927, allocations: 92.55 kB / 0.5053 GB, free: 9.375 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.024e-06/0.3928, allocations: 0 / 0.5053 GB, free: 9.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003193/0.3931, allocations: 122.5 kB / 0.5054 GB, free: 9.316 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.3932, allocations: 182.8 kB / 0.5056 GB, free: 9.098 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.3936, allocations: 290.1 kB / 0.5059 GB, free: 8.969 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.3936, allocations: 33.64 kB / 0.5059 GB, free: 8.934 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.787e-05/0.3937, allocations: 150.8 kB / 0.5061 GB, free: 8.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.081e-05/0.3937, allocations: 18.95 kB / 0.5061 GB, free: 8.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.458e-06/0.3937, allocations: 0 / 0.5061 GB, free: 8.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.351e-05/0.3938, allocations: 318 kB / 0.5064 GB, free: 8.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.822e-05/0.3939, allocations: 26.09 kB / 0.5064 GB, free: 8.453 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.394, allocations: 103.5 kB / 0.5065 GB, free: 8.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.651e-05/0.3941, allocations: 28.36 kB / 0.5065 GB, free: 8.359 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3941, allocations: 0 / 0.5065 GB, free: 8.359 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002453/0.3944, allocations: 114 kB / 0.5066 GB, free: 8.305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3944, allocations: 9.938 kB / 0.5066 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.3944, allocations: 0 / 0.5066 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3944, allocations: 3.812 kB / 0.5067 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.3946, allocations: 22.27 kB / 0.5067 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3946, allocations: 3.812 kB / 0.5067 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.3948, allocations: 11.69 kB / 0.5067 GB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.3948, allocations: 7.828 kB / 0.5067 GB, free: 8.289 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.679e-05/0.3949, allocations: 37.73 kB / 0.5067 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.395, allocations: 66.14 kB / 0.5068 GB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003018/0.3953, allocations: 114.7 kB / 0.5069 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.3953, allocations: 3.781 kB / 0.5069 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3953, allocations: 0 / 0.5069 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.3953, allocations: 7.781 kB / 0.5069 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.3956, allocations: 222.1 kB / 0.5071 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3956, allocations: 3.875 kB / 0.5071 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/0.3957, allocations: 19.58 kB / 0.5071 GB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3957, allocations: 0 / 0.5071 GB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.3958, allocations: 7.75 kB / 0.5072 GB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.3958, allocations: 12.05 kB / 0.5072 GB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3958, allocations: 7.812 kB / 0.5072 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002746/0.3961, allocations: 197.3 kB / 0.5074 GB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.3962, allocations: 128.9 kB / 0.5075 GB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.357e-05/0.3963, allocations: 0 / 0.5075 GB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.3964, allocations: 3.844 kB / 0.5075 GB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.3965, allocations: 10.73 kB / 0.5075 GB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.3965, allocations: 3.969 kB / 0.5075 GB, free: 7.648 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002896/0.3968, allocations: 239.1 kB / 0.5077 GB, free: 7.547 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003603/0.3972, allocations: 53.66 kB / 0.5078 GB, free: 7.531 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.0008242/0.398, allocations: 334.8 kB / 0.5081 GB, free: 7.273 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002869/0.3983, allocations: 80.5 kB / 0.5082 GB, free: 7.262 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3983, allocations: 1.469 kB / 0.5082 GB, free: 7.262 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.796e-05/0.3984, allocations: 41.91 kB / 0.5082 GB, free: 7.254 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/0.3989, allocations: 57.02 kB / 0.5083 GB, free: 7.238 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007212/0.3997, allocations: 334.5 kB / 0.5086 GB, free: 7.039 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.4, allocations: 0.778 MB / 0.5094 GB, free: 6.297 MB / 330.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4, allocations: 0 / 0.5094 GB, free: 6.297 MB / 330.7 MB Notification: Performance of Templates: time 0.006719/0.4067, allocations: 3.024 MB / 0.5123 GB, free: 4.781 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches