Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 122.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001698/0.001698, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 67.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2266, allocations: 50.54 MB / 408.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003598/0.2303, allocations: 2.586 MB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003034/0.2333, allocations: 1.933 MB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.2336, allocations: 7.938 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.2347, allocations: 0.5298 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008997/0.2356, allocations: 498.2 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.2368, allocations: 0.5411 MB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008673/0.2377, allocations: 0.834 MB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.2379, allocations: 105.9 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004151/0.2384, allocations: 342.7 kB / 416.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004253/0.2388, allocations: 374.5 kB / 416.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.604e-05/0.2389, allocations: 44 kB / 416.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003944/0.2393, allocations: 227.8 kB / 416.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.2395, allocations: 211.3 kB / 416.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002917/0.2398, allocations: 314 kB / 417.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009347/0.2408, allocations: 0.89 MB / 418.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2408, allocations: 0 / 418.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2408, allocations: 0 / 418.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.2408, allocations: 0 / 418.1 MB, free: 8.066 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.00168/0.2425, allocations: 1.257 MB / 419.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2425, allocations: 8.031 kB / 419.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.157e-05/0.2426, allocations: 50.73 kB / 419.4 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.2428, allocations: 92.41 kB / 419.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008314/0.2436, allocations: 0.606 MB / 420.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.2437, allocations: 16.36 kB / 420.2 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.2437, allocations: 35.94 kB / 420.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005948/0.2443, allocations: 354.7 kB / 420.5 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.2443, allocations: 0 / 420.5 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.2444, allocations: 8 kB / 420.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.196e-05/0.2444, allocations: 8 kB / 420.6 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003856/0.2448, allocations: 175.8 kB / 420.7 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/0.2463, allocations: 1.345 MB / 422.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007368/0.247, allocations: 370.7 kB / 422.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003018/0.2474, allocations: 171.4 kB / 422.6 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.2474, allocations: 4 kB / 422.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005853/0.248, allocations: 463.2 kB / 423.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.993e-06/0.248, allocations: 0 / 423.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001409/0.2494, allocations: 0.7474 MB / 423.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002111/0.2496, allocations: 468.8 kB / 424.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.2508, allocations: 0.9771 MB / 425.2 MB, free: 464 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.856e-05/0.2509, allocations: 45.7 kB / 425.3 MB, free: 412 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002551/0.2512, allocations: 309 kB / 425.6 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.2513, allocations: 119.1 kB / 425.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.2515, allocations: 98.08 kB / 425.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2516, allocations: 326 kB / 426.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.2519, allocations: 149.4 kB / 426.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004455/0.2524, allocations: 358.4 kB / 426.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007481/0.2531, allocations: 0.5778 MB / 427.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.2531, allocations: 4 kB / 427.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001117/0.2543, allocations: 0.6695 MB / 427.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.96e-05/0.2543, allocations: 103.4 kB / 428 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2544, allocations: 4 kB / 428 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.2544, allocations: 4.281 kB / 428 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002667/0.2547, allocations: 67.84 kB / 428 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.2547, allocations: 4 kB / 428 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.255, allocations: 51.72 kB / 428.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-05/0.255, allocations: 24 kB / 428.1 MB, free: 13.35 MB / 350.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.0004243/0.2555, allocations: 407 kB / 428.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.2556, allocations: 91.42 kB / 428.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.2558, allocations: 78.58 kB / 428.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2558, allocations: 4 kB / 428.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2558, allocations: 7.938 kB / 428.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2558, allocations: 0 / 428.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.257, allocations: 0.9738 MB / 429.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.257, allocations: 4 kB / 429.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.2571, allocations: 19.98 kB / 429.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.2572, allocations: 11.94 kB / 429.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.2572, allocations: 15.98 kB / 429.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.2572, allocations: 7.938 kB / 429.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2572, allocations: 0 / 429.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.2583, allocations: 0.791 MB / 430.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.2585, allocations: 152.6 kB / 430.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.2586, allocations: 27.94 kB / 430.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002692/0.2589, allocations: 19.97 kB / 430.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.239e-05/0.259, allocations: 39.91 kB / 430.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-05/0.2591, allocations: 23.98 kB / 430.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008203/0.2599, allocations: 0.6982 MB / 431.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2599, allocations: 8 kB / 431.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005936/0.2605, allocations: 155.8 kB / 431.6 MB, free: 9.676 MB / 350.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.002424/0.2629, allocations: 1.722 MB / 433.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009686/0.2639, allocations: 0.6079 MB / 434 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2639, allocations: 64 / 434 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005328/0.2645, allocations: 442 kB / 434.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009193/0.2654, allocations: 175.9 kB / 434.6 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008383/0.2738, allocations: 6.359 MB / 440.9 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00052/0.2743, allocations: 0.9446 MB / 441.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003328/0.2747, allocations: 104.8 kB / 442 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/0.275, allocations: 247.3 kB / 442.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2751, allocations: 0 / 442.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03848/0.3135, allocations: 16.11 MB / 458.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.842/9.155, allocations: 15.91 kB / 458.3 MB, free: 14.8 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches