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.000858/0.0008582, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.0008597/0.0008597, allocations: 179.5 kB / 17.2 MB, free: 5.914 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.398/1.398, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002317/0.0002318, allocations: 7.031 kB / 300.7 MB, free: 5.934 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09331, allocations: 50.43 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002825/0.09619, allocations: 2.087 MB / 353.2 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.09871, allocations: 1.614 MB / 354.8 MB, free: 8.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.09893, allocations: 7.938 kB / 354.8 MB, free: 8.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009792/0.09991, allocations: 462.9 kB / 355.3 MB, free: 7.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000619/0.1005, allocations: 363.1 kB / 355.6 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001385/0.1019, allocations: 0.5485 MB / 356.2 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005841/0.1025, allocations: 471.1 kB / 356.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.1027, allocations: 93.88 kB / 356.7 MB, free: 6.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000288/0.103, allocations: 266.9 kB / 357 MB, free: 5.844 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002963/0.1033, allocations: 279 kB / 357.3 MB, free: 5.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.1034, allocations: 16 kB / 357.3 MB, free: 5.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000284/0.1037, allocations: 155.7 kB / 357.4 MB, free: 5.402 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.1039, allocations: 183.4 kB / 357.6 MB, free: 5.223 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.104, allocations: 137.3 kB / 357.8 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005967/0.1046, allocations: 0.6274 MB / 358.4 MB, free: 4.453 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.1046, allocations: 0 / 358.4 MB, free: 4.453 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1046, allocations: 0 / 358.4 MB, free: 4.453 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1046, allocations: 0 / 358.4 MB, free: 4.453 MB / 286.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.001483/0.1061, allocations: 1.082 MB / 359.5 MB, free: 3.273 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.1062, allocations: 12.03 kB / 359.5 MB, free: 3.262 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.1063, allocations: 82.95 kB / 359.6 MB, free: 3.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008242/0.1071, allocations: 0.554 MB / 360.1 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.443e-05/0.1072, allocations: 16 kB / 360.1 MB, free: 2.566 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.166e-05/0.1072, allocations: 27.98 kB / 360.2 MB, free: 2.539 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.1078, allocations: 346.7 kB / 360.5 MB, free: 2.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1078, allocations: 0 / 360.5 MB, free: 2.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.907e-05/0.1079, allocations: 23.97 kB / 360.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.848e-05/0.1079, allocations: 11.95 kB / 360.5 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003632/0.1083, allocations: 174 kB / 360.7 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.1098, allocations: 1.341 MB / 362 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006461/0.1105, allocations: 351 kB / 362.4 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.1105, allocations: 11.98 kB / 362.4 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005651/0.1111, allocations: 455.2 kB / 362.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.624e-06/0.1111, allocations: 0 / 362.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001387/0.1125, allocations: 0.9772 MB / 363.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002188/0.1127, allocations: 464.9 kB / 364.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.1138, allocations: 0.9262 MB / 365.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.137e-05/0.1139, allocations: 45.69 kB / 365.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002559/0.1141, allocations: 304.9 kB / 365.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.05e-05/0.1142, allocations: 98.7 kB / 365.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.975e-05/0.1143, allocations: 15.94 kB / 365.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.816e-05/0.1144, allocations: 326 kB / 366 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002793/0.1147, allocations: 156.9 kB / 366.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.1151, allocations: 342.5 kB / 366.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003611/0.1154, allocations: 265 kB / 366.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1155, allocations: 3.938 kB / 366.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001004/0.1165, allocations: 0.6654 MB / 367.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.981e-05/0.1165, allocations: 97.09 kB / 367.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.1166, allocations: 4 kB / 367.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.1166, allocations: 4 kB / 367.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.1168, allocations: 63.91 kB / 367.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.1169, allocations: 11.94 kB / 367.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.1172, allocations: 59.81 kB / 367.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.1172, allocations: 23.98 kB / 367.6 MB, free: 10.5 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],$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.0003839/0.1176, allocations: 399.2 kB / 368 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.451e-05/0.1177, allocations: 79.06 kB / 368.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/0.1178, allocations: 82.2 kB / 368.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1178, allocations: 4 kB / 368.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1178, allocations: 0 / 368.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.1179, allocations: 4 kB / 368.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00116/0.119, allocations: 0.9524 MB / 369.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.119, allocations: 0 / 369.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.59e-05/0.1191, allocations: 31.92 kB / 369.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1192, allocations: 0 / 369.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.156e-05/0.1192, allocations: 19.98 kB / 369.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.1192, allocations: 0 / 369.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.1192, allocations: 11.95 kB / 369.2 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.1203, allocations: 0.8112 MB / 370 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.1205, allocations: 168.2 kB / 370.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.1206, allocations: 20 kB / 370.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.1208, allocations: 23.98 kB / 370.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.1209, allocations: 35.95 kB / 370.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/0.121, allocations: 27.98 kB / 370.3 MB, free: 7.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007892/0.1218, allocations: 0.6708 MB / 371 MB, free: 7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1218, allocations: 0 / 371 MB, free: 7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005698/0.1224, allocations: 156 kB / 371.1 MB, free: 6.848 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 (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.001003/0.1234, allocations: 0.4886 MB / 371.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008516/0.1242, allocations: 0.6078 MB / 372.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1242, allocations: 0 / 372.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005008/0.1247, allocations: 441.3 kB / 372.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007034/0.1255, allocations: 146.8 kB / 372.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.1273, allocations: 1.283 MB / 374.1 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.1278, allocations: 0.9449 MB / 375 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002615/0.128, allocations: 117.1 kB / 375.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.1281, allocations: 55.42 kB / 375.2 MB, free: 2.793 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1282, allocations: 0 / 375.2 MB, free: 2.793 MB / 302.1 MB Notification: Performance of Templates: time 0.014/0.1422, allocations: 8.496 MB / 383.7 MB, free: 10.34 MB / 318.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/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