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.001237/0.001237, allocations: 103 kB / 17.74 MB, free: 5.367 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.001276/0.001276, allocations: 188.5 kB / 18.66 MB, free: 4.449 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.334/1.334, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 39.94 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2656, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003822/0.2695, allocations: 2.527 MB / 403.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003021/0.2726, allocations: 1.804 MB / 405.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000219/0.2728, allocations: 7.938 kB / 405.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.2739, allocations: 0.5324 MB / 406.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007111/0.2747, allocations: 426.5 kB / 406.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001598/0.2763, allocations: 0.674 MB / 407.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008241/0.2771, allocations: 0.7949 MB / 408.2 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.2773, allocations: 97.95 kB / 408.2 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003618/0.2777, allocations: 334.8 kB / 408.6 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003844/0.2781, allocations: 362.6 kB / 408.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.69e-05/0.2782, allocations: 40 kB / 409 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003918/0.2786, allocations: 223.8 kB / 409.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.2788, allocations: 203.3 kB / 409.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002689/0.2791, allocations: 298.2 kB / 409.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008556/0.2799, allocations: 0.8615 MB / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2799, allocations: 0 / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2799, allocations: 0 / 410.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.28, allocations: 0 / 410.5 MB, free: 15.73 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.001722/0.2817, allocations: 1.195 MB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.2817, allocations: 15.83 kB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.2819, allocations: 79.98 kB / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007694/0.2826, allocations: 0.5896 MB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.2827, allocations: 16 kB / 412.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.2827, allocations: 28 kB / 412.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005736/0.2833, allocations: 354.7 kB / 412.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2833, allocations: 3.938 kB / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.2834, allocations: 11.98 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.2834, allocations: 8 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003802/0.2838, allocations: 175.8 kB / 413 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.2852, allocations: 1.329 MB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000658/0.2859, allocations: 358.6 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/0.2862, allocations: 171.4 kB / 414.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.2862, allocations: 12 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006068/0.2868, allocations: 459.2 kB / 415.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.723e-06/0.2868, allocations: 0 / 415.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001343/0.2882, allocations: 0.7489 MB / 416.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002099/0.2884, allocations: 456.9 kB / 416.5 MB, free: 9.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.2895, allocations: 0.9379 MB / 417.4 MB, free: 8.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.2895, allocations: 41.7 kB / 417.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002483/0.2898, allocations: 304.7 kB / 417.8 MB, free: 7.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.019e-05/0.2899, allocations: 106.7 kB / 417.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.29, allocations: 94.12 kB / 418 MB, free: 7.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.2901, allocations: 330 kB / 418.3 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/0.2905, allocations: 152.9 kB / 418.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004249/0.2909, allocations: 355 kB / 418.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.2916, allocations: 0.5894 MB / 419.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2916, allocations: 0 / 419.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001039/0.2927, allocations: 0.6691 MB / 420.1 MB, free: 5.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.856e-05/0.2928, allocations: 97.09 kB / 420.1 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.2928, allocations: 4 kB / 420.2 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.2928, allocations: 8.281 kB / 420.2 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.2931, allocations: 67.83 kB / 420.2 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.2931, allocations: 8 kB / 420.2 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.2933, allocations: 51.61 kB / 420.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.2934, allocations: 20 kB / 420.3 MB, free: 5.234 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.0003993/0.2938, allocations: 395.3 kB / 420.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.2939, allocations: 87.05 kB / 420.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.2941, allocations: 74.22 kB / 420.8 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.2941, allocations: 4 kB / 420.8 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.2941, allocations: 0 / 420.8 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.2941, allocations: 3.984 kB / 420.9 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.2953, allocations: 0.9683 MB / 421.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.2953, allocations: 3.938 kB / 421.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.285e-05/0.2954, allocations: 16 kB / 421.8 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.2954, allocations: 8 kB / 421.8 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.699e-05/0.2955, allocations: 19.98 kB / 421.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.2955, allocations: 4 kB / 421.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2955, allocations: 0 / 421.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.2965, allocations: 0.7751 MB / 422.6 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.2967, allocations: 156.1 kB / 422.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.2968, allocations: 23.98 kB / 422.8 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002293/0.297, allocations: 24.17 kB / 422.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.2971, allocations: 32.11 kB / 422.9 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.2972, allocations: 31.91 kB / 422.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007796/0.298, allocations: 0.6708 MB / 423.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.298, allocations: 0 / 423.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005781/0.2986, allocations: 155.9 kB / 423.7 MB, free: 1.645 MB / 334.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.001123/0.2997, allocations: 0.4975 MB / 424.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009492/0.3007, allocations: 0.6191 MB / 424.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.3007, allocations: 384 / 424.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000492/0.3012, allocations: 426 kB / 425.3 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008155/0.302, allocations: 171 kB / 425.4 MB, free: 24 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.3039, allocations: 1.23 MB / 426.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005261/0.3045, allocations: 0.9291 MB / 427.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.3046, allocations: 55.42 kB / 427.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3046, allocations: 0 / 427.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of Templates: time 0.01511/0.3198, allocations: 9.768 MB / 437.4 MB, free: 4.008 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