Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.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.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00163/0.00163, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001948/0.001948, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 61.16 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08233/0.08359, allocations: 50.53 MB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002964/0.08657, allocations: 1.698 MB / 359.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009054/0.0875, allocations: 0.5471 MB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.23e-05/0.0876, allocations: 0 / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.327e-05/0.08771, allocations: 11.86 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.08791, allocations: 35.72 kB / 359.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.08814, allocations: 55.92 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.08832, allocations: 103.6 kB / 360 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.08843, allocations: 29.09 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.08857, allocations: 43.84 kB / 360.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.083e-05/0.08867, allocations: 47.77 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.0887, allocations: 8 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.654e-05/0.08875, allocations: 12 kB / 360.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.668e-05/0.08881, allocations: 27.84 kB / 360.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.879e-05/0.08887, allocations: 39.73 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.08901, allocations: 91.92 kB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.08902, allocations: 0 / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.08903, allocations: 0 / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.08904, allocations: 3.938 kB / 360.3 MB, free: 11.29 MB / 302.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.0005081/0.08955, allocations: 407 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.0896, allocations: 12.03 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.405e-05/0.08965, allocations: 34.75 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.08979, allocations: 24.73 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.08999, allocations: 212.6 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.09001, allocations: 4.312 kB / 361 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.709e-05/0.09004, allocations: 15.94 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.09022, allocations: 81.66 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.09023, allocations: 3.984 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.218e-06/0.09025, allocations: 0 / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.09026, allocations: 0 / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.09038, allocations: 43.97 kB / 361.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005063/0.09089, allocations: 407.9 kB / 361.5 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.09105, allocations: 66.56 kB / 361.6 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.37e-05/0.09112, allocations: 24.86 kB / 361.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.09114, allocations: 3.984 kB / 361.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.09117, allocations: 38.56 kB / 361.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.09118, allocations: 0 / 361.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002651/0.09145, allocations: 101.5 kB / 361.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.09149, allocations: 55.34 kB / 361.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.09161, allocations: 142.4 kB / 362 MB, free: 9.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.09163, allocations: 29.7 kB / 362 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.954e-05/0.0917, allocations: 112.1 kB / 362.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.09172, allocations: 11.81 kB / 362.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.09177, allocations: 25.7 kB / 362.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.09187, allocations: 318.8 kB / 362.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.512e-05/0.09194, allocations: 19.98 kB / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.158e-05/0.092, allocations: 23.98 kB / 362.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.09213, allocations: 44.98 kB / 362.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.09214, allocations: 0 / 362.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001663/0.09231, allocations: 105.4 kB / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.09233, allocations: 4 kB / 362.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.09234, allocations: 0 / 362.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.09236, allocations: 8 kB / 362.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.09258, allocations: 35.97 kB / 362.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.0926, allocations: 0 / 362.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.453e-05/0.09266, allocations: 8.094 kB / 362.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.09268, allocations: 8 kB / 362.7 MB, free: 8.648 MB / 302.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 7.336e-05/0.09275, allocations: 117.8 kB / 362.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.09279, allocations: 11.84 kB / 362.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.927e-05/0.09283, allocations: 20.3 kB / 362.8 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.09284, allocations: 4 kB / 362.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.09284, allocations: 0 / 362.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.09285, allocations: 0 / 362.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.09305, allocations: 193.6 kB / 363 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.09306, allocations: 3.938 kB / 363 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.09321, allocations: 19.98 kB / 363.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.09322, allocations: 7.922 kB / 363.1 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.09325, allocations: 4 kB / 363.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.09325, allocations: 3.938 kB / 363.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.09326, allocations: 0 / 363.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002625/0.09353, allocations: 203.4 kB / 363.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.671e-05/0.09358, allocations: 84.95 kB / 363.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.09361, allocations: 4.031 kB / 363.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.434e-05/0.0937, allocations: 4 kB / 363.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.027e-05/0.09374, allocations: 11.97 kB / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.09375, allocations: 0 / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.269e-05/0.09382, allocations: 114.7 kB / 363.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.09383, allocations: 0 / 363.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002368/0.09407, allocations: 19.91 kB / 363.5 MB, free: 7.746 MB / 302.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.0005175/0.09459, allocations: 0.7318 MB / 364.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.09476, allocations: 48.05 kB / 364.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.09478, allocations: 0 / 364.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.26e-05/0.09484, allocations: 27.92 kB / 364.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.09519, allocations: 19.98 kB / 364.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.09686, allocations: 1.578 MB / 365.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.09713, allocations: 0.7012 MB / 366.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.466e-05/0.09718, allocations: 11.98 kB / 366.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.09725, allocations: 31.42 kB / 366.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09725, allocations: 0 / 366.7 MB, free: 4.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.1165, allocations: 2.266 MB / 368.9 MB, free: 2.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.256/7.372, allocations: 17.69 kB / 368.9 MB, free: 2.238 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches