Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002482/0.002482, allocations: 173.9 kB / 8.153 MB, free: 2.137 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.934/1.934, allocations: 205.2 MB / 213.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001261/0.00126, allocations: 96.67 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.182e-05/1.199e-05, allocations: 4 kB / 314.3 MB, free: 9.074 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2485, allocations: 47.56 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.3784, allocations: 80.2 MB / 442 MB, free: 5.855 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.3788, allocations: 72.45 kB / 442.1 MB, free: 5.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.117/0.4958, allocations: 25.21 MB / 467.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.357e-05/0.496, allocations: 12 kB / 467.3 MB, free: 12.64 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.002004/0.498, allocations: 0.9873 MB / 468.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.498, allocations: 8.031 kB / 468.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002887/0.4983, allocations: 78.97 kB / 468.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002032/0.5004, allocations: 0.617 MB / 469 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.184e-05/0.5005, allocations: 8 kB / 469 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.009e-05/0.5006, allocations: 16 kB / 469 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005726/0.5011, allocations: 168.4 kB / 469.2 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000766/0.5019, allocations: 346.6 kB / 469.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.502, allocations: 3.938 kB / 469.5 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.174e-05/0.502, allocations: 4 kB / 469.5 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-05/0.5021, allocations: 15.98 kB / 469.6 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0031/0.5052, allocations: 1.394 MB / 471 MB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008356/0.5061, allocations: 331 kB / 471.3 MB, free: 8.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004634/0.5066, allocations: 167.5 kB / 471.4 MB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.5066, allocations: 4 kB / 471.4 MB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008007/0.5074, allocations: 427.6 kB / 471.9 MB, free: 7.754 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.937e-06/0.5074, allocations: 0 / 471.9 MB, free: 7.754 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001517/0.509, allocations: 419 kB / 472.3 MB, free: 7.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002484/0.5093, allocations: 460.9 kB / 472.7 MB, free: 6.781 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00215/0.5114, allocations: 0.8045 MB / 473.5 MB, free: 5.969 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002073/0.5117, allocations: 41.64 kB / 473.6 MB, free: 5.922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.5118, allocations: 183.3 kB / 473.7 MB, free: 5.742 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001915/0.512, allocations: 110.6 kB / 473.9 MB, free: 5.633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.5121, allocations: 4 kB / 473.9 MB, free: 5.629 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5123, allocations: 330.8 kB / 474.2 MB, free: 5.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004427/0.5127, allocations: 144.9 kB / 474.3 MB, free: 5.156 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006812/0.5134, allocations: 345.3 kB / 474.7 MB, free: 4.746 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005911/0.514, allocations: 175.3 kB / 474.8 MB, free: 4.578 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.514, allocations: 0 / 474.8 MB, free: 4.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001376/0.5154, allocations: 465.7 kB / 475.3 MB, free: 4.117 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.5155, allocations: 4 kB / 475.3 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.5155, allocations: 4 kB / 475.3 MB, free: 4.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.172e-05/0.5156, allocations: 9.312 kB / 475.3 MB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005361/0.5161, allocations: 55.91 kB / 475.4 MB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.177e-05/0.5161, allocations: 11.94 kB / 475.4 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004284/0.5166, allocations: 40.02 kB / 475.4 MB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/0.5167, allocations: 27.98 kB / 475.4 MB, free: 3.969 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$whenCondition9,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition8,$PRE.booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.start.table.combiTimeTable.nextTimeEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition6,$whenCondition7,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],$whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 3 * 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.0004656/0.5171, allocations: 183.1 kB / 475.6 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.5176, allocations: 79.06 kB / 475.7 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001506/0.5191, allocations: 375.3 kB / 476.1 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.5192, allocations: 4 kB / 476.1 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/0.5192, allocations: 4 kB / 476.1 MB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.5192, allocations: 3.984 kB / 476.1 MB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003489/0.5227, allocations: 0.9018 MB / 477 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.82e-05/0.5228, allocations: 0 / 477 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004425/0.5233, allocations: 31.92 kB / 477 MB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/0.5233, allocations: 1.125 kB / 477 MB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001651/0.5235, allocations: 19.98 kB / 477 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.064e-06/0.5235, allocations: 0 / 477 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.709e-06/0.5236, allocations: 4 kB / 477 MB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002754/0.5263, allocations: 0.6149 MB / 477.6 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007422/0.5271, allocations: 199.9 kB / 477.8 MB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000489/0.5277, allocations: 19.98 kB / 477.9 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.5288, allocations: 31.98 kB / 477.9 MB, free: 1.379 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/0.5291, allocations: 31.95 kB / 477.9 MB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/0.5293, allocations: 23.98 kB / 477.9 MB, free: 1.324 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.002556/0.5319, allocations: 0.628 MB / 478.6 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002271/0.5342, allocations: 171.9 kB / 478.7 MB, free: 0.5273 MB / 362.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: 32 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.002075/0.5364, allocations: 422.4 kB / 479.2 MB, free: 148 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.5386, allocations: 0.4929 MB / 479.6 MB, free: 15.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.5387, allocations: 0.5625 kB / 479.6 MB, free: 15.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.5398, allocations: 341 kB / 480 MB, free: 15.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/0.5423, allocations: 132.4 kB / 480.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004929/0.5473, allocations: 1.02 MB / 481.1 MB, free: 14.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.5484, allocations: 1.015 MB / 482.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5485, allocations: 0 / 482.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of Templates: time 0.02732/0.5758, allocations: 9.878 MB / 492 MB, free: 3.152 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches