Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001813/0.001813, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002317/0.002317, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 51.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2528, allocations: 53.36 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002942/0.2557, allocations: 1.669 MB / 432.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.2568, allocations: 0.5143 MB / 433.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.834e-05/0.2568, allocations: 7.938 kB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.648e-05/0.2569, allocations: 11.86 kB / 433.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.2571, allocations: 31.73 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002261/0.2573, allocations: 55.92 kB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002026/0.2575, allocations: 103.6 kB / 433.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.2577, allocations: 25.09 kB / 433.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.2578, allocations: 55.77 kB / 433.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.262e-05/0.2579, allocations: 35.78 kB / 433.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.2579, allocations: 4 kB / 433.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.382e-05/0.258, allocations: 12 kB / 433.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.617e-05/0.258, allocations: 27.86 kB / 433.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.499e-05/0.2581, allocations: 35.78 kB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.2583, allocations: 89.41 kB / 433.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2583, allocations: 0 / 433.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2583, allocations: 0 / 433.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.2583, allocations: 0 / 433.7 MB, free: 3.957 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006071/0.2589, allocations: 344.7 kB / 434.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2589, allocations: 8.031 kB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.831e-05/0.259, allocations: 42.73 kB / 434.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.2591, allocations: 24.84 kB / 434.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/0.2594, allocations: 138.9 kB / 434.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.2594, allocations: 12.36 kB / 434.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.09e-05/0.2594, allocations: 11.94 kB / 434.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.2596, allocations: 81.06 kB / 434.4 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.2596, allocations: 4 kB / 434.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.2596, allocations: 4 kB / 434.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2596, allocations: 0 / 434.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.2598, allocations: 43.97 kB / 434.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005419/0.2603, allocations: 315.7 kB / 434.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.2604, allocations: 58.58 kB / 434.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.65e-05/0.2605, allocations: 28.89 kB / 434.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.2605, allocations: 0 / 434.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.2606, allocations: 38.56 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 7.51e-07/0.2606, allocations: 0 / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002788/0.2608, allocations: 101.5 kB / 435 MB, free: 2.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.2609, allocations: 51.41 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.261, allocations: 149.6 kB / 435.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.2611, allocations: 29.7 kB / 435.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.2612, allocations: 104.1 kB / 435.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.2612, allocations: 27.88 kB / 435.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.094e-05/0.2613, allocations: 21.7 kB / 435.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.2614, allocations: 322.8 kB / 435.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.929e-05/0.2615, allocations: 19.94 kB / 435.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.519e-05/0.2616, allocations: 23.98 kB / 435.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.2617, allocations: 57.17 kB / 435.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2617, allocations: 0 / 435.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001758/0.2619, allocations: 105.5 kB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2619, allocations: 4 kB / 435.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.2619, allocations: 0 / 435.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.2619, allocations: 0 / 435.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.2621, allocations: 35.97 kB / 435.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2621, allocations: 4 kB / 435.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.4e-05/0.2622, allocations: 7.953 kB / 435.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.2622, allocations: 4 kB / 435.9 MB, free: 1.586 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0001059/0.2623, allocations: 121.8 kB / 436 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.2623, allocations: 15.83 kB / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.74e-05/0.2623, allocations: 8.406 kB / 436.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.2623, allocations: 4 kB / 436.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2624, allocations: 0 / 436.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2624, allocations: 0 / 436.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.2626, allocations: 160.7 kB / 436.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2626, allocations: 3.938 kB / 436.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.2627, allocations: 23.98 kB / 436.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2627, allocations: 0 / 436.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.2627, allocations: 4 kB / 436.3 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2627, allocations: 0 / 436.3 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2627, allocations: 3.984 kB / 436.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/0.263, allocations: 195.5 kB / 436.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.98e-05/0.2631, allocations: 23.8 kB / 436.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.2631, allocations: 0 / 436.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.966e-05/0.2632, allocations: 0 / 436.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.73e-05/0.2632, allocations: 12 kB / 436.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.493e-06/0.2632, allocations: 3.984 kB / 436.5 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.624e-05/0.2633, allocations: 111.3 kB / 436.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2633, allocations: 0 / 436.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.2635, allocations: 15.94 kB / 436.6 MB, free: 0.8242 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005764/0.2641, allocations: 0.7281 MB / 437.3 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001566/0.2643, allocations: 51.91 kB / 437.4 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2643, allocations: 0 / 437.4 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.351e-05/0.2643, allocations: 28.09 kB / 437.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.2646, allocations: 26.38 kB / 437.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.2665, allocations: 1.583 MB / 439 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.358e-05/0.2666, allocations: 97.05 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.05e-05/0.2666, allocations: 4 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.517e-05/0.2667, allocations: 31.42 kB / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2667, allocations: 0 / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02998/0.2966, allocations: 2.918 MB / 442.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.47, allocations: 8.938 kB / 442.1 MB, free: 11.37 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.036815412342548]