Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.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.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel",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.001123/0.001123, allocations: 109.5 kB / 17.06 MB, free: 5.797 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.001128/0.001128, allocations: 200 kB / 18.01 MB, free: 4.918 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.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 47.94 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2531, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003/0.2561, allocations: 1.693 MB / 401.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009292/0.2571, allocations: 489.1 kB / 402.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.177e-05/0.2572, allocations: 4 kB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.2573, allocations: 7.875 kB / 402.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.2575, allocations: 31.78 kB / 402.4 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001888/0.2577, allocations: 43.94 kB / 402.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.2579, allocations: 103.6 kB / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.258, allocations: 29.09 kB / 402.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.411e-05/0.2581, allocations: 39.8 kB / 402.6 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.464e-05/0.2582, allocations: 55.75 kB / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.2583, allocations: 8 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.434e-05/0.2583, allocations: 4 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.566e-05/0.2584, allocations: 19.92 kB / 402.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.137e-05/0.2584, allocations: 43.69 kB / 402.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.2586, allocations: 82.73 kB / 402.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2586, allocations: 0 / 402.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2586, allocations: 0 / 402.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.2586, allocations: 0 / 402.9 MB, free: 6.164 MB / 318.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.000545/0.2591, allocations: 414.9 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.2592, allocations: 12.03 kB / 403.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.783e-05/0.2592, allocations: 42.67 kB / 403.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.148e-05/0.2593, allocations: 12.89 kB / 403.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.2595, allocations: 209.8 kB / 403.5 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.2595, allocations: 4 kB / 403.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.2596, allocations: 15.88 kB / 403.5 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.2598, allocations: 81.03 kB / 403.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.2598, allocations: 4 kB / 403.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2598, allocations: 3.938 kB / 403.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.2598, allocations: 4 kB / 403.6 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.2599, allocations: 47.91 kB / 403.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005302/0.2605, allocations: 400 kB / 404.1 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.2606, allocations: 62.62 kB / 404.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.589e-05/0.2607, allocations: 24.86 kB / 404.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.2607, allocations: 3.938 kB / 404.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.2608, allocations: 42.55 kB / 404.2 MB, free: 4.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.2608, allocations: 0 / 404.2 MB, free: 4.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002759/0.2611, allocations: 93.56 kB / 404.3 MB, free: 4.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.2611, allocations: 55.41 kB / 404.4 MB, free: 4.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.2612, allocations: 139.9 kB / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.2613, allocations: 29.69 kB / 404.5 MB, free: 4.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/0.2613, allocations: 116.2 kB / 404.6 MB, free: 4.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.531e-05/0.2614, allocations: 15.8 kB / 404.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.005e-05/0.2614, allocations: 17.72 kB / 404.7 MB, free: 4.129 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.2615, allocations: 322.8 kB / 405 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.51e-05/0.2616, allocations: 23.98 kB / 405 MB, free: 3.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.964e-05/0.2617, allocations: 23.97 kB / 405 MB, free: 3.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001268/0.2618, allocations: 52.78 kB / 405.1 MB, free: 3.703 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2618, allocations: 0 / 405.1 MB, free: 3.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001616/0.262, allocations: 85.58 kB / 405.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.262, allocations: 4 kB / 405.2 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.262, allocations: 0 / 405.2 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.262, allocations: 3.984 kB / 405.2 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.2623, allocations: 47.97 kB / 405.2 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.2623, allocations: 240 / 405.2 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.511e-05/0.2623, allocations: 3.953 kB / 405.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.2624, allocations: 4 kB / 405.2 MB, free: 3.551 MB / 318.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 9.623e-05/0.2625, allocations: 117.8 kB / 405.3 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.2625, allocations: 8.203 kB / 405.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.493e-05/0.2625, allocations: 12.3 kB / 405.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2625, allocations: 4 kB / 405.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.351e-06/0.2626, allocations: 11.88 kB / 405.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2626, allocations: 4 kB / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002038/0.2628, allocations: 197.6 kB / 405.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2628, allocations: 0 / 405.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.2629, allocations: 23.98 kB / 405.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2629, allocations: 0 / 405.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.263, allocations: 3.938 kB / 405.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.263, allocations: 4 kB / 405.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.263, allocations: 7.969 kB / 405.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002878/0.2633, allocations: 207.4 kB / 405.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.748e-05/0.2633, allocations: 89 kB / 405.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.966e-05/0.2634, allocations: 0 / 405.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.283e-05/0.2634, allocations: 4 kB / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.101e-05/0.2635, allocations: 0 / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.2635, allocations: 11.92 kB / 405.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.553e-05/0.2636, allocations: 110.5 kB / 406 MB, free: 2.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2636, allocations: 0 / 406 MB, free: 2.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.2638, allocations: 16 kB / 406 MB, free: 2.637 MB / 318.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.0005464/0.2644, allocations: 0.7358 MB / 406.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001822/0.2646, allocations: 51.91 kB / 406.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2646, allocations: 0 / 406.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.174e-05/0.2646, allocations: 28.05 kB / 406.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.265, allocations: 22.64 kB / 406.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.2668, allocations: 1.565 MB / 408.4 MB, free: 136 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.2671, allocations: 0.7041 MB / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.565e-05/0.2671, allocations: 7.984 kB / 409.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.246e-05/0.2672, allocations: 31.42 kB / 409.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2672, allocations: 0 / 409.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.2881, allocations: 2.279 MB / 411.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.518/7.806, allocations: 15.7 kB / 411.5 MB, free: 13.14 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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.0004 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches