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.00143/0.00143, allocations: 104.8 kB / 16.62 MB, free: 6.812 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.001525/0.001525, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.348/1.348, allocations: 222.9 MB / 241.2 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 46.72 kB / 300.1 MB, free: 6.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1053, allocations: 49.45 MB / 349.6 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003531/0.1088, allocations: 2.567 MB / 352.1 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002694/0.1115, allocations: 1.773 MB / 353.9 MB, free: 440 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000195/0.1118, allocations: 7.938 kB / 353.9 MB, free: 432 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.1128, allocations: 0.513 MB / 354.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007177/0.1136, allocations: 402.8 kB / 354.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.1152, allocations: 0.6243 MB / 355.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008052/0.116, allocations: 0.7871 MB / 356.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002301/0.1163, allocations: 117.8 kB / 356.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003557/0.1166, allocations: 326.8 kB / 356.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003969/0.117, allocations: 370.6 kB / 357 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.086e-05/0.1171, allocations: 40 kB / 357.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004049/0.1175, allocations: 219.7 kB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.1178, allocations: 215.3 kB / 357.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003042/0.1181, allocations: 298.2 kB / 357.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.1192, allocations: 0.8374 MB / 358.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.1192, allocations: 0 / 358.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1192, allocations: 0 / 358.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.1192, allocations: 0 / 358.6 MB, free: 11.71 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.002292/0.1215, allocations: 1.199 MB / 359.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.1216, allocations: 15.89 kB / 359.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.1218, allocations: 76 kB / 359.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000814/0.1226, allocations: 0.582 MB / 360.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.1226, allocations: 23.89 kB / 360.5 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.848e-05/0.1227, allocations: 24 kB / 360.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005657/0.1233, allocations: 358.6 kB / 360.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1233, allocations: 0 / 360.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.1233, allocations: 11.98 kB / 360.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.1234, allocations: 8 kB / 360.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003924/0.1238, allocations: 179.8 kB / 361.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/0.1255, allocations: 1.344 MB / 362.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006749/0.1262, allocations: 361.7 kB / 362.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.1265, allocations: 171.4 kB / 362.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.1265, allocations: 4 kB / 363 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005954/0.1271, allocations: 467.1 kB / 363.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.903e-06/0.1271, allocations: 0 / 363.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.00131/0.1284, allocations: 0.7397 MB / 364.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002247/0.1287, allocations: 460.9 kB / 364.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/0.1297, allocations: 0.9263 MB / 365.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.1297, allocations: 45.69 kB / 365.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.13, allocations: 304.8 kB / 365.9 MB, free: 3.961 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.934e-05/0.1301, allocations: 110.7 kB / 366 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.1303, allocations: 102 kB / 366.1 MB, free: 3.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1304, allocations: 326 kB / 366.4 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002922/0.1307, allocations: 152.9 kB / 366.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004286/0.1311, allocations: 354.5 kB / 366.9 MB, free: 2.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007039/0.1318, allocations: 0.5777 MB / 367.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1318, allocations: 0 / 367.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001018/0.1329, allocations: 0.6736 MB / 368.1 MB, free: 1.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.334e-05/0.1329, allocations: 101 kB / 368.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.133, allocations: 4.281 kB / 368.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.133, allocations: 8 kB / 368.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.1332, allocations: 67.84 kB / 368.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.1333, allocations: 7.984 kB / 368.3 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.1335, allocations: 47.67 kB / 368.4 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/0.1336, allocations: 24 kB / 368.4 MB, free: 1.215 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.0004079/0.134, allocations: 390.7 kB / 368.8 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.1341, allocations: 87 kB / 368.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.1343, allocations: 74.2 kB / 368.9 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1343, allocations: 4 kB / 368.9 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.1343, allocations: 4 kB / 368.9 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1343, allocations: 3.984 kB / 368.9 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1609/0.2952, allocations: 0.9558 MB / 369.9 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.2952, allocations: 2.719 kB / 369.9 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.2954, allocations: 25.03 kB / 369.9 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.2954, allocations: 2.156 kB / 369.9 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.403e-05/0.2955, allocations: 16.19 kB / 369.9 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.2955, allocations: 6.734 kB / 370 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2955, allocations: 1.438 kB / 370 MB, free: 25.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.2966, allocations: 0.7696 MB / 370.7 MB, free: 25.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.2967, allocations: 155 kB / 370.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.2969, allocations: 22.22 kB / 370.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.2971, allocations: 23.86 kB / 370.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.2972, allocations: 41.64 kB / 371 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-05/0.2973, allocations: 26.59 kB / 371 MB, free: 25.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009033/0.2982, allocations: 0.6749 MB / 371.7 MB, free: 25.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2982, allocations: 3.828 kB / 371.7 MB, free: 25.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006333/0.2989, allocations: 150.3 kB / 371.8 MB, free: 25.21 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.001085/0.3, allocations: 498.1 kB / 372.3 MB, free: 25.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009224/0.3009, allocations: 0.6324 MB / 372.9 MB, free: 24.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3009, allocations: 1.469 kB / 372.9 MB, free: 24.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.3014, allocations: 440.9 kB / 373.4 MB, free: 24.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008557/0.3023, allocations: 176.8 kB / 373.5 MB, free: 24.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.3039, allocations: 1.336 MB / 374.9 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.3044, allocations: 0.9321 MB / 375.8 MB, free: 23.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003021/0.3047, allocations: 110.5 kB / 375.9 MB, free: 23.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.3048, allocations: 60.72 kB / 376 MB, free: 23.08 MB / 302.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3048, allocations: 0 / 376 MB, free: 23.08 MB / 302.1 MB Notification: Performance of Templates: time 0.01948/0.3243, allocations: 9.192 MB / 385.2 MB, free: 20.43 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins/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