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.001154/0.001154, allocations: 110.3 kB / 17.75 MB, free: 5.355 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.001182/0.001182, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.35/1.35, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 55.89 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.241, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003581/0.2446, allocations: 2.541 MB / 403.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.2473, allocations: 1.8 MB / 405.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.2475, allocations: 19.88 kB / 405.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.2486, allocations: 0.5258 MB / 406.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007054/0.2493, allocations: 430.5 kB / 406.7 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.2509, allocations: 0.67 MB / 407.4 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007758/0.2517, allocations: 0.7949 MB / 408.2 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.2519, allocations: 102 kB / 408.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003334/0.2522, allocations: 326.8 kB / 408.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003733/0.2526, allocations: 358.6 kB / 408.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.565e-05/0.2527, allocations: 40 kB / 409 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003901/0.2531, allocations: 227.7 kB / 409.2 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.2533, allocations: 207.3 kB / 409.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002716/0.2536, allocations: 310.2 kB / 409.7 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008814/0.2545, allocations: 0.846 MB / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2545, allocations: 3.984 kB / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2545, allocations: 0 / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.2545, allocations: 0 / 410.6 MB, free: 15.69 MB / 334.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.001729/0.2563, allocations: 1.195 MB / 411.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2563, allocations: 15.89 kB / 411.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.2564, allocations: 80 kB / 411.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007915/0.2572, allocations: 0.5856 MB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.2573, allocations: 23.98 kB / 412.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.2573, allocations: 20 kB / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005865/0.2579, allocations: 362.7 kB / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.2579, allocations: 0 / 412.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.258, allocations: 8 kB / 412.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.258, allocations: 15.98 kB / 412.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/0.2584, allocations: 175.8 kB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.2598, allocations: 1.329 MB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006895/0.2605, allocations: 358.7 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.2608, allocations: 167.4 kB / 414.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.2609, allocations: 11.98 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005728/0.2615, allocations: 463.2 kB / 415.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.004e-06/0.2615, allocations: 3.938 kB / 415.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.0013/0.2628, allocations: 0.7336 MB / 416.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002243/0.263, allocations: 460.9 kB / 416.5 MB, free: 9.242 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.2641, allocations: 0.9339 MB / 417.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.037e-05/0.2642, allocations: 41.7 kB / 417.5 MB, free: 8.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.2644, allocations: 316.7 kB / 417.8 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.2646, allocations: 106.7 kB / 417.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001466/0.2647, allocations: 102 kB / 418 MB, free: 7.727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.2649, allocations: 322 kB / 418.3 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/0.2652, allocations: 152.9 kB / 418.5 MB, free: 7.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/0.2657, allocations: 350.4 kB / 418.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007946/0.2665, allocations: 0.5855 MB / 419.4 MB, free: 6.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.2665, allocations: 0 / 419.4 MB, free: 6.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001126/0.2676, allocations: 0.6691 MB / 420.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.004e-05/0.2677, allocations: 97.09 kB / 420.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.2677, allocations: 4 kB / 420.2 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.2678, allocations: 4 kB / 420.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.268, allocations: 67.84 kB / 420.2 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.2681, allocations: 7.938 kB / 420.2 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.2683, allocations: 51.95 kB / 420.3 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.2684, allocations: 23.98 kB / 420.3 MB, free: 5.199 MB / 334.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.0003907/0.2688, allocations: 391.7 kB / 420.7 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.2689, allocations: 83 kB / 420.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.269, allocations: 78.2 kB / 420.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.2691, allocations: 4 kB / 420.9 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2691, allocations: 4 kB / 420.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.2692, allocations: 148.2 kB / 421 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.2694, allocations: 23.98 kB / 421 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.2696, allocations: 19.98 kB / 421.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.2697, allocations: 43.89 kB / 421.1 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0013/0.271, allocations: 1.101 MB / 422.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00126/0.2723, allocations: 1.063 MB / 423.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000412/0.2727, allocations: 267 kB / 423.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007845/0.2735, allocations: 0.6708 MB / 424.2 MB, free: 1.18 MB / 334.1 MB Notification: Performance of Backend: time 4.11e-07/0.2735, allocations: 3.938 kB / 424.2 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.2759, allocations: 0.9639 MB / 425.2 MB, free: 332 kB / 334.1 MB Notification: Performance of SimCode: time 0.002202/0.2781, allocations: 1.765 MB / 426.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01766/0.2958, allocations: 10.09 MB / 437 MB, free: 4.477 MB / 350.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