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.001691/0.001691, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002036/0.002036, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 71.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2733, allocations: 50.53 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004111/0.2775, allocations: 2.579 MB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003405/0.2809, allocations: 1.933 MB / 413.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002132/0.2811, allocations: 7.938 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001323/0.2825, allocations: 0.5336 MB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009917/0.2835, allocations: 497.6 kB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.285, allocations: 0.5415 MB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.286, allocations: 0.8261 MB / 415.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.2863, allocations: 110 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004018/0.2867, allocations: 342.7 kB / 416.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004611/0.2872, allocations: 370.5 kB / 416.5 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.904e-05/0.2873, allocations: 40 kB / 416.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004098/0.2877, allocations: 227.8 kB / 416.7 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003021/0.288, allocations: 207.3 kB / 416.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003272/0.2883, allocations: 318 kB / 417.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.2894, allocations: 0.8823 MB / 418.1 MB, free: 8.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2895, allocations: 8 kB / 418.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2895, allocations: 0 / 418.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.2895, allocations: 0 / 418.1 MB, free: 8.133 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.002024/0.2915, allocations: 1.249 MB / 419.4 MB, free: 6.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.2916, allocations: 12.03 kB / 419.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.002e-05/0.2917, allocations: 54.73 kB / 419.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.2918, allocations: 88.41 kB / 419.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000932/0.2928, allocations: 0.606 MB / 420.1 MB, free: 5.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.2928, allocations: 20.38 kB / 420.2 MB, free: 5.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.2929, allocations: 23.94 kB / 420.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006584/0.2935, allocations: 358.7 kB / 420.5 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.2935, allocations: 0 / 420.5 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.2936, allocations: 11.98 kB / 420.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/0.2936, allocations: 12 kB / 420.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003921/0.294, allocations: 187.7 kB / 420.7 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.2958, allocations: 1.337 MB / 422.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007478/0.2966, allocations: 370.3 kB / 422.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.2969, allocations: 175.3 kB / 422.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.297, allocations: 8 kB / 422.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000669/0.2976, allocations: 463.2 kB / 423.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.883e-06/0.2977, allocations: 4 kB / 423.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001435/0.2991, allocations: 0.7472 MB / 423.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003086/0.2994, allocations: 464.8 kB / 424.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.3008, allocations: 0.9771 MB / 425.2 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.7e-05/0.3009, allocations: 45.7 kB / 425.3 MB, free: 472 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/0.3013, allocations: 313 kB / 425.6 MB, free: 152 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.3015, allocations: 107.2 kB / 425.7 MB, free: 44 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000218/0.3017, allocations: 102.1 kB / 425.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000226/0.3019, allocations: 330 kB / 426.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003618/0.3023, allocations: 148.9 kB / 426.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005588/0.3029, allocations: 354.4 kB / 426.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008861/0.3038, allocations: 0.5705 MB / 427.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3038, allocations: 0 / 427.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001288/0.3051, allocations: 0.6814 MB / 427.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.3052, allocations: 97.08 kB / 428 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.3052, allocations: 4 kB / 428 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.585e-05/0.3053, allocations: 8 kB / 428 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.3055, allocations: 63.84 kB / 428 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.3056, allocations: 8.281 kB / 428 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.3059, allocations: 51.72 kB / 428.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.3059, 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.0005217/0.3064, allocations: 403 kB / 428.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.3066, allocations: 91.42 kB / 428.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.3067, allocations: 78.58 kB / 428.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.3068, allocations: 4.125 kB / 428.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.3068, allocations: 7.938 kB / 428.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3068, allocations: 4 kB / 428.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.3081, allocations: 0.9777 MB / 429.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3081, allocations: 0 / 429.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.819e-05/0.3082, allocations: 23.98 kB / 429.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.424e-05/0.3083, allocations: 3.938 kB / 429.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.3083, allocations: 23.98 kB / 429.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.3083, allocations: 3.938 kB / 429.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.3083, allocations: 4 kB / 429.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.3095, allocations: 0.7793 MB / 430.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/0.3097, allocations: 156.6 kB / 430.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.3098, allocations: 27.94 kB / 430.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.3101, allocations: 23.97 kB / 430.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.3102, allocations: 39.91 kB / 430.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.791e-05/0.3103, allocations: 23.98 kB / 430.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009854/0.3113, allocations: 0.6982 MB / 431.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3113, allocations: 0 / 431.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000643/0.3119, allocations: 163.8 kB / 431.6 MB, free: 9.742 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.003146/0.3151, allocations: 1.713 MB / 433.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.3162, allocations: 0.6074 MB / 433.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.3162, allocations: 4 kB / 433.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005802/0.3168, allocations: 438.3 kB / 434.4 MB, free: 7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009021/0.3177, allocations: 181.8 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.009617/0.3273, allocations: 6.36 MB / 440.9 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.3281, allocations: 0.9407 MB / 441.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003736/0.3285, allocations: 116.8 kB / 442 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003587/0.3288, allocations: 247.3 kB / 442.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3288, allocations: 0 / 442.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04578/0.3746, allocations: 16.11 MB / 458.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.638/10.01, allocations: 15.72 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.1.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