Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009307/0.0009307, allocations: 204.1 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 226.5 MB / 245.4 MB, free: 8.148 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008191/0.0008191, allocations: 92.58 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002019/0.0002019, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1885, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09177/0.2803, allocations: 83.53 MB / 492.2 MB, free: 8.047 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.2805, allocations: 79.97 kB / 492.3 MB, free: 7.969 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2228/0.5034, allocations: 28.19 MB / 0.5083 GB, free: 91.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5034, allocations: 0 / 0.5083 GB, free: 91.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.122e-05/0.5035, allocations: 19.59 kB / 0.5083 GB, free: 91.14 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.001456/0.505, allocations: 1.167 MB / 0.5094 GB, free: 90.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.505, allocations: 11.78 kB / 0.5094 GB, free: 90.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.5051, allocations: 81.06 kB / 0.5095 GB, free: 90.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.5063, allocations: 0.677 MB / 0.5102 GB, free: 89.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.557e-05/0.5064, allocations: 21.88 kB / 0.5102 GB, free: 89.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.749e-05/0.5064, allocations: 27.66 kB / 0.5102 GB, free: 89.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005682/0.507, allocations: 379.4 kB / 0.5106 GB, free: 89.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.507, allocations: 192 / 0.5106 GB, free: 89.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.5071, allocations: 15.62 kB / 0.5106 GB, free: 89.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.5071, allocations: 7.812 kB / 0.5106 GB, free: 89.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003652/0.5075, allocations: 200 kB / 0.5108 GB, free: 89.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.5088, allocations: 1.428 MB / 0.5122 GB, free: 89.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005696/0.5094, allocations: 380.9 kB / 0.5125 GB, free: 88.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002642/0.5097, allocations: 190 kB / 0.5127 GB, free: 88.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.5097, allocations: 5.578 kB / 0.5127 GB, free: 88.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004684/0.5102, allocations: 477.2 kB / 0.5132 GB, free: 88.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.683e-06/0.5102, allocations: 0 / 0.5132 GB, free: 88.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001211/0.5114, allocations: 0.8002 MB / 0.514 GB, free: 88.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.5115, allocations: 467 kB / 0.5144 GB, free: 87.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009932/0.5125, allocations: 0.9621 MB / 0.5154 GB, free: 87.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.5126, allocations: 45.55 kB / 0.5154 GB, free: 87.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/0.5128, allocations: 322.2 kB / 0.5157 GB, free: 87.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.324e-05/0.5129, allocations: 110.4 kB / 0.5158 GB, free: 87.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/0.5129, allocations: 12.72 kB / 0.5158 GB, free: 87.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.179e-05/0.5129, allocations: 324.7 kB / 0.5161 GB, free: 87.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000275/0.5132, allocations: 161.8 kB / 0.5163 GB, free: 87.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.5136, allocations: 378 kB / 0.5166 GB, free: 87.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005984/0.5142, allocations: 0.6083 MB / 0.5172 GB, free: 86.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.5142, allocations: 0 / 0.5172 GB, free: 86.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008979/0.5151, allocations: 0.7082 MB / 0.5179 GB, free: 86.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.5152, allocations: 96.56 kB / 0.518 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.5152, allocations: 7.219 kB / 0.518 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.5152, allocations: 3.781 kB / 0.518 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.5154, allocations: 73 kB / 0.5181 GB, free: 86.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.5155, allocations: 7.719 kB / 0.5181 GB, free: 86.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.5157, allocations: 51.02 kB / 0.5182 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.353e-05/0.5158, allocations: 27.27 kB / 0.5182 GB, free: 86.2 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 () * 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.0002896/0.5161, allocations: 393 kB / 0.5186 GB, free: 85.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.84e-05/0.5162, allocations: 82.16 kB / 0.5186 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007912/0.517, allocations: 0.5462 MB / 0.5192 GB, free: 85.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.517, allocations: 7.781 kB / 0.5192 GB, free: 85.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.517, allocations: 0 / 0.5192 GB, free: 85.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.517, allocations: 3.938 kB / 0.5192 GB, free: 85.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.5181, allocations: 1.101 MB / 0.5203 GB, free: 85.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.5181, allocations: 9.281 kB / 0.5203 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.5182, allocations: 31.84 kB / 0.5203 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.5182, allocations: 3.938 kB / 0.5203 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.747e-05/0.5182, allocations: 18.81 kB / 0.5203 GB, free: 84.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.5183, allocations: 0 / 0.5203 GB, free: 84.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5183, allocations: 2.812 kB / 0.5203 GB, free: 84.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009548/0.5192, allocations: 0.8526 MB / 0.5212 GB, free: 84.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.5194, allocations: 200.2 kB / 0.5213 GB, free: 84.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.5195, allocations: 29.5 kB / 0.5214 GB, free: 84.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.5198, allocations: 26.48 kB / 0.5214 GB, free: 84.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.359e-05/0.5199, allocations: 38.06 kB / 0.5214 GB, free: 84.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.059e-05/0.5199, allocations: 29.42 kB / 0.5215 GB, free: 84.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006973/0.5206, allocations: 0.6903 MB / 0.5221 GB, free: 84.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5206, allocations: 0 / 0.5221 GB, free: 84.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006083/0.5212, allocations: 190.8 kB / 0.5223 GB, free: 84.01 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.001016/0.5223, allocations: 0.5077 MB / 0.5228 GB, free: 83.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007746/0.5231, allocations: 0.6574 MB / 0.5235 GB, free: 83.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5231, allocations: 192 / 0.5235 GB, free: 83.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.5235, allocations: 447 kB / 0.5239 GB, free: 83.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008385/0.5243, allocations: 160.8 kB / 0.524 GB, free: 83.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.5259, allocations: 1.435 MB / 0.5254 GB, free: 82.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.5263, allocations: 0.9495 MB / 0.5264 GB, free: 81.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.5264, allocations: 60.92 kB / 0.5264 GB, free: 81.57 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5264, allocations: 0 / 0.5264 GB, free: 81.57 MB / 378.7 MB Notification: Performance of Templates: time 0.01058/0.537, allocations: 10.33 MB / 0.5365 GB, free: 73.78 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches