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.001545/0.001545, allocations: 118.8 kB / 17.79 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.001289/0.001289, 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.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2398, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003899/0.2437, allocations: 2.579 MB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003415/0.2471, allocations: 1.929 MB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003777/0.2475, allocations: 11.88 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001325/0.2489, allocations: 0.5336 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001081/0.25, allocations: 494.2 kB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.2514, allocations: 0.5447 MB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.2525, allocations: 0.8183 MB / 415.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002722/0.2528, allocations: 109.9 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000649/0.2535, allocations: 342.7 kB / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000516/0.254, allocations: 366.6 kB / 416.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.2541, allocations: 44 kB / 416.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004589/0.2546, allocations: 235.7 kB / 416.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002348/0.2548, allocations: 203.3 kB / 416.9 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003535/0.2552, allocations: 314 kB / 417.2 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.2563, allocations: 0.8939 MB / 418.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2563, allocations: 0 / 418.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2563, allocations: 0 / 418.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.2564, allocations: 4 kB / 418.1 MB, free: 8.121 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.00189/0.2582, allocations: 1.245 MB / 419.4 MB, free: 6.781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2583, allocations: 12.02 kB / 419.4 MB, free: 6.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.681e-05/0.2584, allocations: 54.73 kB / 419.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.2585, allocations: 84.42 kB / 419.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008456/0.2594, allocations: 0.6099 MB / 420.1 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.2594, allocations: 20.38 kB / 420.1 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-05/0.2595, allocations: 27.92 kB / 420.2 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006174/0.2601, allocations: 354.7 kB / 420.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.2601, allocations: 0 / 420.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.2602, allocations: 8 kB / 420.5 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.695e-05/0.2602, allocations: 11.98 kB / 420.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003852/0.2606, allocations: 179.8 kB / 420.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.2622, allocations: 1.341 MB / 422.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007222/0.2629, allocations: 366.7 kB / 422.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.2632, allocations: 171.4 kB / 422.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.2633, allocations: 4 kB / 422.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006329/0.2639, allocations: 463.2 kB / 423 MB, free: 2.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 3.647e-06/0.2639, allocations: 0 / 423 MB, free: 2.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001397/0.2653, allocations: 0.7586 MB / 423.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001985/0.2655, allocations: 464.8 kB / 424.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.2667, allocations: 0.9733 MB / 425.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.164e-05/0.2668, allocations: 41.7 kB / 425.3 MB, free: 480 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.267, allocations: 313 kB / 425.6 MB, free: 160 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.2671, allocations: 115.1 kB / 425.7 MB, free: 44 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.2673, allocations: 106 kB / 425.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2674, allocations: 330 kB / 426.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/0.2678, allocations: 152.9 kB / 426.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004453/0.2682, allocations: 346.5 kB / 426.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007408/0.269, allocations: 0.5739 MB / 427.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.269, allocations: 4 kB / 427.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001091/0.2701, allocations: 0.6701 MB / 427.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.741e-05/0.2702, allocations: 101.4 kB / 427.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.2702, allocations: 4 kB / 427.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.2702, allocations: 4 kB / 428 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.2705, allocations: 67.84 kB / 428 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.2705, allocations: 7.984 kB / 428 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/0.2708, allocations: 55.72 kB / 428.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.2708, allocations: 20 kB / 428.1 MB, free: 13.41 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.0003909/0.2712, allocations: 403.1 kB / 428.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.2714, allocations: 87.42 kB / 428.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001396/0.2715, allocations: 82.58 kB / 428.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2715, allocations: 7.938 kB / 428.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.2715, allocations: 0 / 428.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.2715, allocations: 3.984 kB / 428.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.2728, allocations: 0.9849 MB / 429.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.2728, allocations: 0 / 429.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.2729, allocations: 19.98 kB / 429.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.2729, allocations: 7.938 kB / 429.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.993e-05/0.2729, allocations: 19.98 kB / 429.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.2729, allocations: 4 kB / 429.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.273, allocations: 4 kB / 429.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.2741, allocations: 0.7832 MB / 430.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.2742, allocations: 156.6 kB / 430.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.2744, allocations: 27.92 kB / 430.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.2746, allocations: 23.98 kB / 430.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.2747, allocations: 31.95 kB / 430.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/0.2748, allocations: 27.98 kB / 430.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008328/0.2756, allocations: 0.6982 MB / 431.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2756, allocations: 0 / 431.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006039/0.2762, allocations: 159.8 kB / 431.6 MB, free: 9.746 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.002571/0.2788, allocations: 1.727 MB / 433.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009948/0.2798, allocations: 0.6114 MB / 433.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2798, allocations: 0 / 433.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005279/0.2804, allocations: 434 kB / 434.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008552/0.2812, allocations: 183.2 kB / 434.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008598/0.2899, allocations: 6.356 MB / 440.9 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006442/0.2905, allocations: 0.9446 MB / 441.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003812/0.2909, allocations: 112.8 kB / 442 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.2913, allocations: 243.3 kB / 442.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2914, allocations: 384 / 442.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03752/0.3289, allocations: 16.1 MB / 458.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.847/9.176, allocations: 18.03 kB / 458.3 MB, free: 14.87 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