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.0007109/0.000711, allocations: 87.45 kB / 17.31 MB, free: 5.59 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.0007655/0.0007655, allocations: 177.7 kB / 18.21 MB, free: 5.191 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.238/1.238, allocations: 223.3 MB / 242.3 MB, free: 92 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002246/0.0002246, allocations: 8 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07058/0.07082, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002345/0.07317, allocations: 2.197 MB / 354.7 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.07578, allocations: 1.785 MB / 356.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.07599, allocations: 3.938 kB / 356.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009593/0.07696, allocations: 0.5027 MB / 357 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006576/0.07763, allocations: 402.8 kB / 357.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.07901, allocations: 0.6177 MB / 358 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007172/0.07974, allocations: 0.7597 MB / 358.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.07993, allocations: 93.83 kB / 358.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003208/0.08026, allocations: 286.8 kB / 359.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/0.08063, allocations: 326.6 kB / 359.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.08069, allocations: 16 kB / 359.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002864/0.08099, allocations: 179.7 kB / 359.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001815/0.08118, allocations: 175.4 kB / 359.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000236/0.08142, allocations: 295.9 kB / 360.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000567/0.082, allocations: 0.6316 MB / 360.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.08201, allocations: 0 / 360.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.08201, allocations: 0 / 360.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.08203, allocations: 4 kB / 360.7 MB, free: 11.43 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.001307/0.08334, allocations: 1.071 MB / 361.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.08338, allocations: 16.02 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.0835, allocations: 76 kB / 361.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000698/0.08421, allocations: 0.5858 MB / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.08425, allocations: 27.88 kB / 362.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.0843, allocations: 24 kB / 362.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000548/0.08486, allocations: 346.8 kB / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.08488, allocations: 0 / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.08492, allocations: 15.98 kB / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/0.08495, allocations: 11.98 kB / 362.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003609/0.08531, allocations: 175.8 kB / 363.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.08666, allocations: 1.344 MB / 364.4 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006734/0.08735, allocations: 362.7 kB / 364.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002939/0.08765, allocations: 171.4 kB / 364.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.08769, allocations: 8.062 kB / 364.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005479/0.08825, allocations: 467.1 kB / 365.4 MB, free: 6.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.814e-06/0.08826, allocations: 0 / 365.4 MB, free: 6.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001275/0.08954, allocations: 0.7389 MB / 366.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.08971, allocations: 456.9 kB / 366.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.09072, allocations: 0.9379 MB / 367.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.053e-05/0.09078, allocations: 45.69 kB / 367.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002371/0.09103, allocations: 304.7 kB / 367.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.177e-05/0.09113, allocations: 106.7 kB / 368 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.965e-05/0.0912, allocations: 53.69 kB / 368 MB, free: 3.633 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.0913, allocations: 326 kB / 368.3 MB, free: 3.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002992/0.0916, allocations: 148.9 kB / 368.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.09203, allocations: 358.4 kB / 368.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006933/0.09273, allocations: 0.5776 MB / 369.4 MB, free: 2.078 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.09274, allocations: 4 kB / 369.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001014/0.09376, allocations: 0.6696 MB / 370.1 MB, free: 1.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.928e-05/0.09383, allocations: 97.09 kB / 370.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.09385, allocations: 4 kB / 370.2 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.09387, allocations: 11.94 kB / 370.2 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.09412, allocations: 59.91 kB / 370.2 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.09414, allocations: 16.2 kB / 370.3 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.09442, allocations: 55.67 kB / 370.3 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.09446, allocations: 16 kB / 370.3 MB, free: 1.105 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.0003548/0.09482, allocations: 395.1 kB / 370.7 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.09493, allocations: 86.98 kB / 370.8 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001241/0.09506, allocations: 82.2 kB / 370.9 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.09507, allocations: 4 kB / 370.9 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.09509, allocations: 3.938 kB / 370.9 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.0951, allocations: 7.984 kB / 370.9 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1284/0.2235, allocations: 0.9453 MB / 371.8 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.2235, allocations: 1.969 kB / 371.8 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.2236, allocations: 27.08 kB / 371.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.2236, allocations: 7.625 kB / 371.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.557e-05/0.2237, allocations: 17.52 kB / 371.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.2237, allocations: 4.781 kB / 371.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2237, allocations: 2.062 kB / 371.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.2248, allocations: 0.7675 MB / 372.7 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.2249, allocations: 172.6 kB / 372.8 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.225, allocations: 25.98 kB / 372.9 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.2253, allocations: 29.25 kB / 372.9 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.595e-05/0.2254, allocations: 32.06 kB / 372.9 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.2254, allocations: 26.36 kB / 372.9 MB, free: 24.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007317/0.2262, allocations: 0.669 MB / 373.6 MB, free: 24.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2262, allocations: 1.375 kB / 373.6 MB, free: 24.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005647/0.2267, allocations: 150.4 kB / 373.8 MB, free: 24.29 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.001049/0.2278, allocations: 0.4908 MB / 374.3 MB, free: 24.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008879/0.2287, allocations: 0.6123 MB / 374.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2287, allocations: 1.031 kB / 374.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004584/0.2292, allocations: 427.5 kB / 375.3 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008985/0.2301, allocations: 160.5 kB / 375.4 MB, free: 23.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.2317, allocations: 1.4 MB / 376.8 MB, free: 23.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.2321, allocations: 0.9306 MB / 377.8 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.2322, allocations: 57 kB / 377.8 MB, free: 22.42 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2322, allocations: 4 kB / 377.8 MB, free: 22.42 MB / 302.1 MB Notification: Performance of Templates: time 0.01295/0.2452, allocations: 9.657 MB / 387.5 MB, free: 19.26 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