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.001077/0.001077, allocations: 107.8 kB / 16.92 MB, free: 6.145 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.001094/0.001094, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.312/1.312, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 47.58 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08325/0.08435, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00297/0.08735, allocations: 1.676 MB / 351.8 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008794/0.08826, allocations: 0.4885 MB / 352.3 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.659e-05/0.08837, allocations: 4 kB / 352.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.754e-05/0.08848, allocations: 11.86 kB / 352.3 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.08868, allocations: 23.8 kB / 352.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001766/0.08887, allocations: 39.94 kB / 352.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.08906, allocations: 103.6 kB / 352.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.08918, allocations: 36.97 kB / 352.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.431e-05/0.08929, allocations: 39.84 kB / 352.6 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.964e-05/0.08938, allocations: 39.78 kB / 352.6 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.594e-05/0.08942, allocations: 11.94 kB / 352.6 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.062e-05/0.08944, allocations: 7.938 kB / 352.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.731e-05/0.08951, allocations: 23.86 kB / 352.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.226e-05/0.08956, allocations: 43.73 kB / 352.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001273/0.0897, allocations: 87.92 kB / 352.8 MB, free: 1.664 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.08971, allocations: 4 kB / 352.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.08972, allocations: 0 / 352.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.08973, allocations: 0 / 352.8 MB, free: 1.66 MB / 286.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.0005231/0.09026, allocations: 407 kB / 353.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.0903, allocations: 8.031 kB / 353.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.09035, allocations: 42.73 kB / 353.2 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/0.0904, allocations: 16.75 kB / 353.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002053/0.09061, allocations: 208.4 kB / 353.5 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.09063, allocations: 8 kB / 353.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.09066, allocations: 11.91 kB / 353.5 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/0.09085, allocations: 77.66 kB / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.09087, allocations: 0 / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.09089, allocations: 0 / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.0909, allocations: 0 / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.09102, allocations: 43.92 kB / 353.6 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005372/0.09157, allocations: 404 kB / 354 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.09174, allocations: 62.5 kB / 354 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.065e-05/0.09182, allocations: 36.91 kB / 354.1 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.09184, allocations: 4 kB / 354.1 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.09187, allocations: 34.5 kB / 354.1 MB, free: 144 kB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.352e-06/0.09187, allocations: 0 / 354.1 MB, free: 144 kB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002824/0.09216, allocations: 101.5 kB / 354.2 MB, free: 36 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.09222, allocations: 51.41 kB / 354.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.09234, allocations: 143.9 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.09237, allocations: 25.7 kB / 354.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.215e-05/0.09244, allocations: 112.1 kB / 354.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.899e-05/0.09247, allocations: 27.64 kB / 354.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.09252, allocations: 17.72 kB / 354.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.09263, allocations: 322.8 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.44e-05/0.0927, allocations: 15.98 kB / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.507e-05/0.09277, allocations: 19.98 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.09289, allocations: 48.84 kB / 355 MB, free: 15.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.09291, allocations: 3.938 kB / 355 MB, free: 15.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001816/0.09309, allocations: 97.52 kB / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.09312, allocations: 4 kB / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.09313, allocations: 0 / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.09315, allocations: 0 / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.09339, allocations: 35.97 kB / 355.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.09341, allocations: 3.938 kB / 355.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.296e-05/0.09348, allocations: 11.92 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.09349, allocations: 0 / 355.1 MB, free: 15.06 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 8.738e-05/0.09359, allocations: 125.8 kB / 355.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.279e-05/0.09363, allocations: 11.91 kB / 355.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.321e-05/0.09367, allocations: 8.312 kB / 355.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.09367, allocations: 0 / 355.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.09368, allocations: 0 / 355.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.09369, allocations: 4 kB / 355.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.0939, allocations: 197.5 kB / 355.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.09391, allocations: 4 kB / 355.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.09408, allocations: 24.22 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.09409, allocations: 7.938 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.09411, allocations: 4 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.09411, allocations: 0 / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.09412, allocations: 0 / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/0.09442, allocations: 203.4 kB / 355.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.965e-05/0.09448, allocations: 85.05 kB / 355.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.0945, allocations: 0 / 355.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.645e-05/0.09461, allocations: 12.05 kB / 355.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.463e-05/0.09465, allocations: 4 kB / 355.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-06/0.09466, allocations: 0 / 355.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.816e-05/0.09474, allocations: 112.4 kB / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.09475, allocations: 0 / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000244/0.095, allocations: 15.94 kB / 355.9 MB, free: 14.16 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.0005564/0.09556, allocations: 0.7396 MB / 356.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001945/0.09577, allocations: 51.91 kB / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.09578, allocations: 0 / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.546e-05/0.09585, allocations: 23.98 kB / 356.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.09624, allocations: 21.67 kB / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.09796, allocations: 1.567 MB / 358.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.09825, allocations: 0.708 MB / 359 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.778e-05/0.0983, allocations: 8.234 kB / 359.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.933e-05/0.09837, allocations: 27.42 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09838, allocations: 0 / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.1176, allocations: 2.246 MB / 361.3 MB, free: 8.691 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.285/7.403, allocations: 6.672 kB / 361.3 MB, free: 8.688 MB / 302.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