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.001716/0.001716, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001815/0.001815, allocations: 189.4 kB / 18 MB, free: 5.102 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.458/1.458, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 55.91 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2762, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003972/0.2802, allocations: 2.536 MB / 402.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003064/0.2833, allocations: 1.8 MB / 404.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.2836, allocations: 15.88 kB / 404.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.2848, allocations: 0.5293 MB / 405.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00078/0.2856, allocations: 426.5 kB / 405.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.2872, allocations: 0.6728 MB / 406.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008812/0.2881, allocations: 0.7949 MB / 407 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.2883, allocations: 89.98 kB / 407.1 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003618/0.2887, allocations: 334.8 kB / 407.4 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004159/0.2891, allocations: 358.6 kB / 407.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.191e-05/0.2892, allocations: 40 kB / 407.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004079/0.2896, allocations: 223.8 kB / 408 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.2899, allocations: 207.3 kB / 408.2 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003025/0.2902, allocations: 302.2 kB / 408.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.2912, allocations: 0.8551 MB / 409.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2912, allocations: 0 / 409.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2912, allocations: 4 kB / 409.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.2912, allocations: 0 / 409.4 MB, free: 15.67 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.001754/0.293, allocations: 1.226 MB / 410.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.293, allocations: 12.03 kB / 410.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.99e-05/0.2931, allocations: 54.73 kB / 410.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.2933, allocations: 84.42 kB / 410.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008152/0.2941, allocations: 0.6017 MB / 411.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.2941, allocations: 20 kB / 411.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.346e-05/0.2942, allocations: 20 kB / 411.4 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.2948, allocations: 362.7 kB / 411.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.2948, allocations: 0 / 411.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.2948, allocations: 11.98 kB / 411.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.2949, allocations: 8 kB / 411.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00039/0.2953, allocations: 179.8 kB / 411.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.2968, allocations: 1.329 MB / 413.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007041/0.2975, allocations: 362.6 kB / 413.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003113/0.2978, allocations: 171.4 kB / 413.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.2979, allocations: 4 kB / 413.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006252/0.2985, allocations: 463.3 kB / 414.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.573e-06/0.2985, allocations: 0 / 414.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001422/0.2999, allocations: 0.7531 MB / 415 MB, free: 9.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000259/0.3002, allocations: 460.8 kB / 415.4 MB, free: 9.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.3014, allocations: 0.9263 MB / 416.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.239e-05/0.3015, allocations: 49.69 kB / 416.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.3017, allocations: 304.9 kB / 416.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3018, allocations: 111.2 kB / 416.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.302, allocations: 98.11 kB / 416.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3022, allocations: 334 kB / 417.2 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/0.3025, allocations: 148.9 kB / 417.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004618/0.3029, allocations: 354.4 kB / 417.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007816/0.3037, allocations: 0.582 MB / 418.3 MB, free: 6.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.211e-06/0.3038, allocations: 3.938 kB / 418.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001095/0.3049, allocations: 0.6699 MB / 419 MB, free: 5.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.541e-05/0.3049, allocations: 97.09 kB / 419.1 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.305, allocations: 4 kB / 419.1 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.305, allocations: 8 kB / 419.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.3052, allocations: 63.84 kB / 419.2 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.3053, allocations: 15.92 kB / 419.2 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.3055, allocations: 47.72 kB / 419.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.032e-05/0.3056, allocations: 20 kB / 419.2 MB, free: 5.059 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.0004463/0.306, allocations: 407.6 kB / 419.6 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.3062, allocations: 79.53 kB / 419.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.3063, allocations: 74.2 kB / 419.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.3063, allocations: 4 kB / 419.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3063, allocations: 0 / 419.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.3063, allocations: 4.266 kB / 419.8 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.3076, allocations: 0.9758 MB / 420.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3076, allocations: 0 / 420.8 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.827e-05/0.3077, allocations: 23.92 kB / 420.8 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.3077, allocations: 7.938 kB / 420.8 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.3077, allocations: 19.98 kB / 420.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.3077, allocations: 4 kB / 420.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3078, allocations: 0 / 420.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.3089, allocations: 0.7754 MB / 421.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.309, allocations: 160.5 kB / 421.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3091, allocations: 20 kB / 421.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.3094, allocations: 27.97 kB / 421.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.3095, allocations: 35.91 kB / 421.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.724e-05/0.3095, allocations: 27.98 kB / 421.9 MB, free: 2.273 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008128/0.3104, allocations: 0.6708 MB / 422.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3104, allocations: 0 / 422.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005332/0.3109, allocations: 151.9 kB / 422.7 MB, free: 1.453 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.00303/0.3139, allocations: 1.725 MB / 424.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009855/0.3149, allocations: 0.6113 MB / 425 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.315, allocations: 0 / 425 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005554/0.3155, allocations: 438 kB / 425.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008382/0.3164, allocations: 172.9 kB / 425.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008468/0.3248, allocations: 6.255 MB / 431.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.3255, allocations: 0.9291 MB / 432.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003018/0.3258, allocations: 113.1 kB / 432.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/0.3261, allocations: 239.3 kB / 433.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3261, allocations: 0 / 433.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04183/0.368, allocations: 15.77 MB / 448.9 MB, free: 7.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.308/9.676, allocations: 17.91 kB / 448.9 MB, free: 7.105 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