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: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 106.2 kB / 17.06 MB, free: 6.098 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.001109/0.001109, allocations: 200.1 kB / 18 MB, free: 5.168 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.29/1.29, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 43.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2512, allocations: 49.45 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003992/0.2552, allocations: 2.535 MB / 402.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002898/0.2581, allocations: 1.796 MB / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.2584, allocations: 11.94 kB / 404.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.2595, allocations: 0.5355 MB / 405.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007294/0.2602, allocations: 426.5 kB / 405.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.2617, allocations: 0.681 MB / 406.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008139/0.2625, allocations: 0.7911 MB / 407 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.2627, allocations: 97.97 kB / 407.1 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003482/0.2631, allocations: 334.8 kB / 407.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003452/0.2634, allocations: 358.7 kB / 407.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.249e-05/0.2635, allocations: 40 kB / 407.8 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003524/0.2639, allocations: 227.7 kB / 408 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001904/0.2641, allocations: 203.4 kB / 408.2 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.2643, allocations: 310.1 kB / 408.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000872/0.2652, allocations: 0.8589 MB / 409.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.2652, allocations: 0 / 409.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2652, allocations: 0 / 409.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.2652, allocations: 0 / 409.4 MB, free: 15.64 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.001544/0.2668, allocations: 1.222 MB / 410.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2668, allocations: 12.03 kB / 410.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.712e-05/0.2669, allocations: 62.66 kB / 410.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.267, allocations: 80.42 kB / 410.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007771/0.2678, allocations: 0.5978 MB / 411.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.2679, allocations: 20 kB / 411.4 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/0.2679, allocations: 23.98 kB / 411.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005797/0.2685, allocations: 354.7 kB / 411.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.2685, allocations: 3.938 kB / 411.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.243e-05/0.2686, allocations: 8 kB / 411.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.648e-05/0.2686, allocations: 12 kB / 411.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003688/0.269, allocations: 175.8 kB / 411.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.2704, allocations: 1.337 MB / 413.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006378/0.271, allocations: 350.8 kB / 413.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/0.2713, allocations: 171.4 kB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.246e-05/0.2714, allocations: 8 kB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000537/0.2719, allocations: 459.4 kB / 414.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.804e-06/0.2719, allocations: 0 / 414.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001288/0.2732, allocations: 0.7574 MB / 415 MB, free: 9.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001859/0.2734, allocations: 452.9 kB / 415.4 MB, free: 9.094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009553/0.2744, allocations: 0.9263 MB / 416.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.926e-05/0.2744, allocations: 45.7 kB / 416.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.2747, allocations: 312.8 kB / 416.7 MB, free: 7.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.583e-05/0.2748, allocations: 107.2 kB / 416.8 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.2749, allocations: 98.11 kB / 416.9 MB, free: 7.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.275, allocations: 333.9 kB / 417.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.2753, allocations: 148.9 kB / 417.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004012/0.2757, allocations: 354.4 kB / 417.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006771/0.2764, allocations: 0.5932 MB / 418.3 MB, free: 6.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.2764, allocations: 3.938 kB / 418.3 MB, free: 6.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009955/0.2774, allocations: 0.6579 MB / 419 MB, free: 5.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.417e-05/0.2775, allocations: 101.4 kB / 419.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.2775, allocations: 8 kB / 419.1 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2775, allocations: 11.94 kB / 419.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.2778, allocations: 59.91 kB / 419.2 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.2778, allocations: 11.94 kB / 419.2 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.2781, allocations: 51.72 kB / 419.2 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.2781, allocations: 20 kB / 419.3 MB, free: 5.043 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.0003691/0.2785, allocations: 403.3 kB / 419.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2786, allocations: 79.53 kB / 419.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.2787, allocations: 78.2 kB / 419.8 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2787, allocations: 4 kB / 419.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.2787, allocations: 0 / 419.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.2787, allocations: 0 / 419.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.2798, allocations: 0.9718 MB / 420.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2798, allocations: 4 kB / 420.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.128e-05/0.2799, allocations: 23.92 kB / 420.8 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.28, allocations: 4 kB / 420.8 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.41e-05/0.28, allocations: 15.98 kB / 420.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.28, allocations: 4.281 kB / 420.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.28, allocations: 0 / 420.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.281, allocations: 0.7793 MB / 421.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.2812, allocations: 160.5 kB / 421.8 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.2813, allocations: 23.98 kB / 421.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.2815, allocations: 23.98 kB / 421.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.303e-05/0.2816, allocations: 39.95 kB / 421.9 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.2817, allocations: 24.12 kB / 421.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007216/0.2824, allocations: 0.6709 MB / 422.5 MB, free: 1.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2824, allocations: 0 / 422.5 MB, free: 1.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005392/0.283, allocations: 147.9 kB / 422.7 MB, free: 1.449 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.002286/0.2853, allocations: 1.737 MB / 424.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008978/0.2862, allocations: 0.6115 MB / 425 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2862, allocations: 0 / 425 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004966/0.2867, allocations: 434 kB / 425.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000797/0.2875, allocations: 181.8 kB / 425.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00739/0.2949, allocations: 6.255 MB / 431.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.2954, allocations: 0.9291 MB / 432.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002833/0.2957, allocations: 100.8 kB / 432.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002799/0.296, allocations: 231.4 kB / 433.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.296, allocations: 4 kB / 433.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03401/0.33, allocations: 15.78 MB / 448.9 MB, free: 7.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.829/9.159, allocations: 11.05 kB / 448.9 MB, free: 7.098 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.csv","/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