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.001219/0.001219, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001237/0.001237, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.467/1.467, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 51.89 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.0971, allocations: 49.44 MB / 350.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004676/0.1018, allocations: 2.529 MB / 353.2 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003374/0.1052, allocations: 1.796 MB / 355 MB, free: 52 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004485/0.1057, allocations: 11.94 kB / 355.1 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001473/0.1072, allocations: 0.5323 MB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.1083, allocations: 430.5 kB / 356 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002127/0.1104, allocations: 0.6723 MB / 356.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001619/0.1121, allocations: 0.7949 MB / 357.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003078/0.1124, allocations: 97.83 kB / 357.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006723/0.1131, allocations: 326.9 kB / 357.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005938/0.1137, allocations: 354.6 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.1138, allocations: 44 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005166/0.1144, allocations: 211.8 kB / 358.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00027/0.1146, allocations: 207.3 kB / 358.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004267/0.1151, allocations: 306.2 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001212/0.1163, allocations: 0.8374 MB / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1163, allocations: 0 / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.1163, allocations: 0 / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.75e-05/0.1164, allocations: 0 / 359.8 MB, free: 11.27 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.002362/0.1187, allocations: 1.199 MB / 361 MB, free: 9.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.1188, allocations: 19.83 kB / 361 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.119, allocations: 79.98 kB / 361.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000949/0.12, allocations: 0.5742 MB / 361.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.374e-05/0.12, allocations: 27.89 kB / 361.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.61e-05/0.1201, allocations: 27.92 kB / 361.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006569/0.1207, allocations: 350.7 kB / 362.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1208, allocations: 0 / 362.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.1208, allocations: 8 kB / 362.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/0.1208, allocations: 12 kB / 362.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.1213, allocations: 187.8 kB / 362.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1231, allocations: 1.34 MB / 363.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007566/0.1239, allocations: 354.8 kB / 364 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000328/0.1242, allocations: 167.4 kB / 364.1 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.207e-05/0.1242, allocations: 15.98 kB / 364.2 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006898/0.1249, allocations: 463.1 kB / 364.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.746e-06/0.125, allocations: 0 / 364.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001504/0.1265, allocations: 0.7349 MB / 365.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002586/0.1267, allocations: 464.9 kB / 365.8 MB, free: 4.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001329/0.1281, allocations: 0.9262 MB / 366.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.969e-05/0.1282, allocations: 41.7 kB / 366.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/0.1285, allocations: 308.8 kB / 367.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.1286, allocations: 106.7 kB / 367.2 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.1288, allocations: 102 kB / 367.3 MB, free: 3.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1289, allocations: 326 kB / 367.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.1293, allocations: 153.4 kB / 367.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004822/0.1298, allocations: 354.4 kB / 368.1 MB, free: 2.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008046/0.1306, allocations: 0.5855 MB / 368.7 MB, free: 1.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.1306, allocations: 0 / 368.7 MB, free: 1.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001231/0.1318, allocations: 0.6652 MB / 369.3 MB, free: 1.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-05/0.1319, allocations: 101.4 kB / 369.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.132, allocations: 8 kB / 369.4 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.69e-05/0.132, allocations: 7.938 kB / 369.5 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.1323, allocations: 67.84 kB / 369.5 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.1323, allocations: 4 kB / 369.5 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.1326, allocations: 43.67 kB / 369.6 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/0.1327, allocations: 31.92 kB / 369.6 MB, free: 0.7695 MB / 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.0004957/0.1332, allocations: 399.4 kB / 370 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.1334, allocations: 83 kB / 370.1 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/0.1335, allocations: 74.2 kB / 370.1 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1336, allocations: 4 kB / 370.1 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.495e-06/0.1336, allocations: 4 kB / 370.1 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.1336, allocations: 0 / 370.1 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1899/0.3235, allocations: 0.9557 MB / 371.1 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.3236, allocations: 3.969 kB / 371.1 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002302/0.3238, allocations: 21.69 kB / 371.1 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/0.3238, allocations: 2.062 kB / 371.1 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.759e-05/0.3239, allocations: 17.81 kB / 371.1 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.013e-05/0.324, allocations: 6.531 kB / 371.2 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.324, allocations: 1.344 kB / 371.2 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002251/0.3262, allocations: 0.7738 MB / 371.9 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003415/0.3266, allocations: 150.1 kB / 372.1 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002857/0.3269, allocations: 25.62 kB / 372.1 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005289/0.3275, allocations: 23.45 kB / 372.1 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.3277, allocations: 40.97 kB / 372.2 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.854e-05/0.3278, allocations: 25.17 kB / 372.2 MB, free: 25.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001778/0.3296, allocations: 0.6689 MB / 372.9 MB, free: 25.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.92e-07/0.3296, allocations: 1.125 kB / 372.9 MB, free: 25.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001316/0.3309, allocations: 157.7 kB / 373 MB, free: 25.13 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.002175/0.3331, allocations: 0.4975 MB / 373.5 MB, free: 25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001924/0.3351, allocations: 0.6266 MB / 374.1 MB, free: 24.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/0.3351, allocations: 1.188 kB / 374.1 MB, free: 24.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008465/0.336, allocations: 436.3 kB / 374.6 MB, free: 24.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.3376, allocations: 166.1 kB / 374.7 MB, free: 24.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003515/0.3412, allocations: 1.239 MB / 376 MB, free: 23.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007849/0.342, allocations: 0.9316 MB / 376.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/0.3423, allocations: 60.66 kB / 377 MB, free: 22.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.174e-06/0.3423, allocations: 1.594 kB / 377 MB, free: 22.98 MB / 302.1 MB Notification: Performance of Templates: time 0.02529/0.3676, allocations: 9.782 MB / 386.7 MB, free: 19.68 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 -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