Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.00092/0.0009201, allocations: 182.7 kB / 8.134 MB, free: 2.117 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.24/1.24, allocations: 221.4 MB / 229.9 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 95.94 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.844e-06/7.864e-06, allocations: 4 kB / 336.5 MB, free: 9.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2111, allocations: 50.38 MB / 386.9 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08968/0.3008, allocations: 81.55 MB / 468.4 MB, free: 5.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.3011, allocations: 77.2 kB / 468.5 MB, free: 5.176 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07102/0.3721, allocations: 25.88 MB / 494.4 MB, free: 11.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.931e-05/0.3722, allocations: 12 kB / 494.4 MB, free: 11.33 MB / 378.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.00128/0.3735, allocations: 0.9911 MB / 495.4 MB, free: 10.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.3736, allocations: 8.031 kB / 495.4 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.3737, allocations: 75.06 kB / 495.5 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.3748, allocations: 0.6209 MB / 496.1 MB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.3749, allocations: 12 kB / 496.1 MB, free: 9.484 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.934e-05/0.3749, allocations: 16 kB / 496.1 MB, free: 9.469 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003228/0.3753, allocations: 172.4 kB / 496.3 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004754/0.3757, allocations: 340.8 kB / 496.6 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3758, allocations: 0 / 496.6 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.3758, allocations: 7.984 kB / 496.6 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.3758, allocations: 4 kB / 496.6 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.3775, allocations: 1.385 MB / 498 MB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.378, allocations: 334.8 kB / 498.3 MB, free: 7.113 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.3782, allocations: 175.5 kB / 498.5 MB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.3782, allocations: 7.938 kB / 498.5 MB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004557/0.3787, allocations: 421.7 kB / 498.9 MB, free: 6.453 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.793e-06/0.3787, allocations: 4 kB / 498.9 MB, free: 6.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.000819/0.3795, allocations: 431.1 kB / 499.4 MB, free: 6.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002304/0.3798, allocations: 456.9 kB / 499.8 MB, free: 5.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.3808, allocations: 0.8083 MB / 0.4889 GB, free: 4.656 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.487e-05/0.3809, allocations: 41.62 kB / 0.4889 GB, free: 4.609 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.3811, allocations: 176.9 kB / 0.4891 GB, free: 4.434 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.962e-05/0.3812, allocations: 102.7 kB / 0.4892 GB, free: 4.332 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.153e-05/0.3812, allocations: 0 / 0.4892 GB, free: 4.332 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3813, allocations: 330 kB / 0.4895 GB, free: 4.004 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.3816, allocations: 148.9 kB / 0.4896 GB, free: 3.859 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.382, allocations: 349.3 kB / 0.49 GB, free: 3.438 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002954/0.3823, allocations: 175.8 kB / 0.4901 GB, free: 3.266 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3823, allocations: 4 kB / 0.4902 GB, free: 3.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007829/0.3831, allocations: 0.5014 MB / 0.4906 GB, free: 2.754 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3831, allocations: 8 kB / 0.4907 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3831, allocations: 4 kB / 0.4907 GB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.3831, allocations: 4 kB / 0.4907 GB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.3834, allocations: 63.91 kB / 0.4907 GB, free: 2.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.3834, allocations: 7.938 kB / 0.4907 GB, free: 2.668 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.3837, allocations: 39.92 kB / 0.4908 GB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-05/0.3838, allocations: 31.98 kB / 0.4908 GB, free: 2.598 MB / 378.7 MB 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.0002086/0.384, allocations: 244.9 kB / 0.491 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.3841, allocations: 79.06 kB / 0.4911 GB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006594/0.3848, allocations: 387.2 kB / 0.4915 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3848, allocations: 4 kB / 0.4915 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3848, allocations: 3.938 kB / 0.4915 GB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3848, allocations: 4.266 kB / 0.4915 GB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.3859, allocations: 0.8949 MB / 0.4924 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3859, allocations: 0 / 0.4924 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.3861, allocations: 35.86 kB / 0.4924 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3861, allocations: 4 kB / 0.4924 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.146e-05/0.3861, allocations: 23.98 kB / 0.4924 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3861, allocations: 160 / 0.4924 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3862, allocations: 4 kB / 0.4924 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007877/0.3869, allocations: 0.6152 MB / 0.493 GB, free: 200 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.09714/0.4841, allocations: 195 kB / 0.4932 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000302/0.4844, allocations: 21.17 kB / 0.4932 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.4848, allocations: 24.19 kB / 0.4933 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4849, allocations: 41.34 kB / 0.4933 GB, free: 133.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.905e-05/0.4849, allocations: 25.67 kB / 0.4933 GB, free: 133.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006981/0.4856, allocations: 0.6274 MB / 0.4939 GB, free: 133 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000648/0.4863, allocations: 167.4 kB / 0.4941 GB, free: 133 MB / 378.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.0007608/0.4871, allocations: 396 kB / 0.4945 GB, free: 132.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.4876, allocations: 0.492 MB / 0.4949 GB, free: 132.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4877, allocations: 0 / 0.4949 GB, free: 132.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.488, allocations: 351.4 kB / 0.4953 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006647/0.4886, allocations: 138.8 kB / 0.4954 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.4901, allocations: 0.9689 MB / 0.4964 GB, free: 132.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000478/0.4906, allocations: 1.004 MB / 0.4973 GB, free: 131.7 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4906, allocations: 1.875 kB / 0.4973 GB, free: 131.7 MB / 378.7 MB Notification: Performance of Templates: time 0.01318/0.5038, allocations: 8.372 MB / 0.5055 GB, free: 131.3 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches