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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 112.1 kB / 17.68 MB, free: 5.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 191 kB / 18.62 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 51.3 kB / 302 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1055, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003903/0.1095, allocations: 2.533 MB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002847/0.1123, allocations: 1.796 MB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.1125, allocations: 15.94 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.1136, allocations: 0.5297 MB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000691/0.1143, allocations: 418.5 kB / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001548/0.1159, allocations: 0.6831 MB / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007908/0.1167, allocations: 0.7793 MB / 358.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.1169, allocations: 113.8 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003288/0.1173, allocations: 334.8 kB / 358.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003565/0.1176, allocations: 350.7 kB / 359 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.621e-05/0.1177, allocations: 44 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003654/0.1181, allocations: 235.7 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.1183, allocations: 203.4 kB / 359.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002661/0.1186, allocations: 302.2 kB / 359.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007935/0.1194, allocations: 0.8488 MB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1194, allocations: 3.938 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1194, allocations: 0 / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1194, allocations: 0 / 360.6 MB, free: 10.53 MB / 302.1 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.001542/0.121, allocations: 1.191 MB / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.121, allocations: 15.89 kB / 361.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.1211, allocations: 87.92 kB / 361.9 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007545/0.1219, allocations: 0.5819 MB / 362.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.1219, allocations: 27.89 kB / 362.5 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.122, allocations: 20 kB / 362.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005618/0.1226, allocations: 354.7 kB / 362.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.1226, allocations: 4 kB / 362.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.1226, allocations: 11.98 kB / 362.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/0.1227, allocations: 15.94 kB / 362.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003603/0.123, allocations: 179.8 kB / 363.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.1244, allocations: 1.333 MB / 364.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006515/0.1251, allocations: 354.7 kB / 364.8 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/0.1254, allocations: 171.4 kB / 364.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/0.1254, allocations: 8.062 kB / 365 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005597/0.126, allocations: 471 kB / 365.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.874e-06/0.126, allocations: 0 / 365.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.0013/0.1273, allocations: 0.736 MB / 366.1 MB, free: 4.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001958/0.1275, allocations: 464.9 kB / 366.6 MB, free: 4.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.1285, allocations: 0.9262 MB / 367.5 MB, free: 3.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.1286, allocations: 41.7 kB / 367.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.1288, allocations: 304.8 kB / 367.9 MB, free: 2.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.397e-05/0.1289, allocations: 110.7 kB / 368 MB, free: 2.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.1291, allocations: 98.03 kB / 368.1 MB, free: 2.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1292, allocations: 326 kB / 368.4 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.1295, allocations: 152.9 kB / 368.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.1299, allocations: 354.4 kB / 368.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006795/0.1306, allocations: 0.586 MB / 369.5 MB, free: 1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1306, allocations: 0 / 369.5 MB, free: 1 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009926/0.1316, allocations: 0.673 MB / 370.1 MB, free: 308 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.555e-05/0.1317, allocations: 97.09 kB / 370.2 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.1317, allocations: 3.984 kB / 370.2 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.1317, allocations: 8 kB / 370.3 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.132, allocations: 67.89 kB / 370.3 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.132, allocations: 7.938 kB / 370.3 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.1323, allocations: 47.95 kB / 370.4 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/0.1323, allocations: 23.94 kB / 370.4 MB, free: 32 kB / 302.1 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],$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition9,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition8,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition2,stop.on,$PRE.stop.on,start.reset[1],stop.reset[1],start.on,$PRE.start.on,stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[1],$whenCondition5,$whenCondition4,start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[1],$whenCondition7,$whenCondition6,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.1541/0.2864, allocations: 393.6 kB / 370.8 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002683/0.2867, allocations: 81.66 kB / 370.9 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.2869, allocations: 76.39 kB / 370.9 MB, free: 25.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.2869, allocations: 5.375 kB / 370.9 MB, free: 25.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.2869, allocations: 2.156 kB / 370.9 MB, free: 25.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.2869, allocations: 3.594 kB / 370.9 MB, free: 25.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.2883, allocations: 0.9579 MB / 371.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.2883, allocations: 1.531 kB / 371.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.2885, allocations: 31.11 kB / 371.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.2885, allocations: 4.812 kB / 371.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.2885, allocations: 14.88 kB / 372 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.834e-06/0.2885, allocations: 3.047 kB / 372 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.2885, allocations: 5.188 kB / 372 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.2896, allocations: 0.7728 MB / 372.7 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.2898, allocations: 150.3 kB / 372.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.2899, allocations: 23.55 kB / 372.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.2901, allocations: 24.08 kB / 372.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.2903, allocations: 45.33 kB / 373 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.635e-05/0.2903, allocations: 25.22 kB / 373 MB, free: 24.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008607/0.2912, allocations: 0.6737 MB / 373.7 MB, free: 24.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2912, allocations: 0 / 373.7 MB, free: 24.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006476/0.2918, allocations: 150.2 kB / 373.8 MB, free: 24.39 MB / 302.1 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.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,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 (31): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001122/0.293, allocations: 0.5024 MB / 374.3 MB, free: 24.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008601/0.2938, allocations: 0.6091 MB / 374.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.2939, allocations: 4 kB / 374.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000454/0.2943, allocations: 437 kB / 375.4 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008322/0.2952, allocations: 165.8 kB / 375.5 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.2969, allocations: 1.173 MB / 376.7 MB, free: 23.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.2974, allocations: 0.9294 MB / 377.6 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002794/0.2976, allocations: 114.9 kB / 377.7 MB, free: 22.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.2978, allocations: 60.89 kB / 377.8 MB, free: 22.29 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2978, allocations: 7.875 kB / 377.8 MB, free: 22.28 MB / 302.1 MB Notification: Performance of Templates: time 0.01754/0.3153, allocations: 9.305 MB / 387.1 MB, free: 19.42 MB / 302.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches