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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001945/0.001945, allocations: 180.5 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.513/3.513, allocations: 205.4 MB / 223.6 MB, free: 9.035 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.001222/0.001223, allocations: 90.3 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006173/0.0006174, allocations: 12 kB / 328.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5603/0.561, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1828/0.7438, allocations: 81.11 MB / 456.8 MB, free: 15.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005195/0.7445, allocations: 75.91 kB / 456.9 MB, free: 15.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1424/0.8869, allocations: 26 MB / 482.9 MB, free: 5.418 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.807e-06/0.887, allocations: 0 / 482.9 MB, free: 5.418 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001781/0.8872, allocations: 15.94 kB / 482.9 MB, free: 5.402 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.003728/0.8909, allocations: 1.123 MB / 484 MB, free: 4.184 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.713e-05/0.891, allocations: 8.031 kB / 484 MB, free: 4.176 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006959/0.8917, allocations: 80 kB / 484.1 MB, free: 4.098 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002785/0.8946, allocations: 0.6443 MB / 484.8 MB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.894e-05/0.8947, allocations: 20.38 kB / 484.8 MB, free: 3.391 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002067/0.8949, allocations: 24.36 kB / 484.8 MB, free: 3.367 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.8964, allocations: 375.4 kB / 485.2 MB, free: 2.957 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.653e-05/0.8965, allocations: 4.188 kB / 485.2 MB, free: 2.953 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.594e-05/0.8966, allocations: 11.94 kB / 485.2 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.487e-05/0.8966, allocations: 8 kB / 485.2 MB, free: 2.934 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.8977, allocations: 207.7 kB / 485.4 MB, free: 2.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004371/0.9021, allocations: 1.419 MB / 486.8 MB, free: 1.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.9036, allocations: 374.8 kB / 487.2 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007069/0.9044, allocations: 183.3 kB / 487.4 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.479e-05/0.9045, allocations: 8 kB / 487.4 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.9057, allocations: 483.1 kB / 487.8 MB, free: 108 kB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 9.127e-06/0.9058, allocations: 4 kB / 487.8 MB, free: 104 kB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.003585/0.9094, allocations: 0.8 MB / 488.6 MB, free: 15.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005014/0.9099, allocations: 460.8 kB / 489.1 MB, free: 14.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/0.9129, allocations: 0.9339 MB / 490 MB, free: 13.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001564/0.913, allocations: 45.7 kB / 490.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004735/0.9135, allocations: 304.6 kB / 490.4 MB, free: 13.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000285/0.9138, allocations: 110.7 kB / 490.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.368e-05/0.9139, allocations: 12 kB / 490.5 MB, free: 13.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.9141, allocations: 322 kB / 490.8 MB, free: 12.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007093/0.9149, allocations: 168.8 kB / 491 MB, free: 12.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.916, allocations: 370.5 kB / 491.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/0.9268, allocations: 0.8109 MB / 492.1 MB, free: 11.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.664e-05/0.9269, allocations: 4 kB / 492.1 MB, free: 11.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002879/0.9298, allocations: 0.7081 MB / 492.8 MB, free: 10.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002099/0.9301, allocations: 97.09 kB / 492.9 MB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.349e-05/0.9301, allocations: 4 kB / 492.9 MB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.702e-05/0.9302, allocations: 4 kB / 493 MB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005879/0.9308, allocations: 67.83 kB / 493 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.823e-05/0.9309, allocations: 7.938 kB / 493 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.9321, allocations: 52.02 kB / 493.1 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.9323, allocations: 24 kB / 493.1 MB, free: 10.46 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = true 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],$PRE.stop.reset[1],$PRE.stop.table.y,$whenCondition4,$whenCondition5,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$PRE.start.reset[1],$PRE.start.table.y,$whenCondition6,$whenCondition7,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 () * Number of clocked 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.001696/0.934, allocations: 407.8 kB / 493.5 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005657/0.9346, allocations: 83.06 kB / 493.6 MB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002376/0.937, allocations: 0.5448 MB / 494.1 MB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/0.937, allocations: 7.938 kB / 494.1 MB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.9371, allocations: 4 kB / 494.1 MB, free: 9.379 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.9371, allocations: 8.062 kB / 494.1 MB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004339/0.9414, allocations: 1.071 MB / 495.2 MB, free: 8.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/0.9415, allocations: 3.938 kB / 495.2 MB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.9418, allocations: 31.97 kB / 495.2 MB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.852e-05/0.9419, allocations: 3.938 kB / 495.3 MB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.942, allocations: 19.98 kB / 495.3 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.108e-05/0.942, allocations: 0 / 495.3 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.506e-05/0.942, allocations: 4 kB / 495.3 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/0.945, allocations: 0.8499 MB / 496.1 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006447/0.9457, allocations: 196.1 kB / 496.3 MB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003927/0.9461, allocations: 24 kB / 496.3 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007045/0.9468, allocations: 31.97 kB / 496.4 MB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.9471, allocations: 43.86 kB / 496.4 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.9472, allocations: 27.98 kB / 496.4 MB, free: 6.934 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002522/0.9498, allocations: 0.6591 MB / 497.1 MB, free: 6.277 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.9498, allocations: 4 kB / 497.1 MB, free: 6.273 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001872/0.9517, allocations: 183.9 kB / 497.3 MB, free: 6.094 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) * Number of clocked states: 0 () * 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.002409/0.9541, allocations: 0.5099 MB / 497.8 MB, free: 5.605 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.9562, allocations: 0.6537 MB / 498.4 MB, free: 4.914 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.348e-05/0.9562, allocations: 4 kB / 498.5 MB, free: 4.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009305/0.9571, allocations: 442 kB / 498.9 MB, free: 4.441 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007006/0.9642, allocations: 172.4 kB / 499.1 MB, free: 4.273 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005214/0.9694, allocations: 1.393 MB / 0.4887 GB, free: 2.836 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001487/0.971, allocations: 0.9338 MB / 0.4896 GB, free: 1.871 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005568/0.9716, allocations: 59.42 kB / 0.4897 GB, free: 1.812 MB / 378.7 MB Notification: Performance of SimCode: time 7.675e-06/0.9716, allocations: 0 / 0.4897 GB, free: 1.812 MB / 378.7 MB Notification: Performance of Templates: time 0.5227/1.494, allocations: 10.06 MB / 0.4995 GB, free: 102.3 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