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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9221/0.9221, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.446e-05/1.579e-05, allocations: 2.281 kB / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001973/0.001988, allocations: 1.635 MB / 320.1 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007251/0.002713, allocations: 466.8 kB / 320.5 MB, free: 4.137 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.359e-05/0.002807, allocations: 3.938 kB / 320.5 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.002937, allocations: 11.86 kB / 320.5 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.003152, allocations: 31.73 kB / 320.6 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.003371, allocations: 55.8 kB / 320.6 MB, free: 4.035 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.003556, allocations: 107.6 kB / 320.7 MB, free: 3.93 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.003697, allocations: 25.28 kB / 320.7 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.003815, allocations: 55.88 kB / 320.8 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.6e-05/0.003901, allocations: 31.89 kB / 320.8 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.995e-05/0.003931, allocations: 4 kB / 320.8 MB, free: 3.812 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.418e-05/0.003945, allocations: 8 kB / 320.8 MB, free: 3.805 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.782e-05/0.004013, allocations: 23.92 kB / 320.9 MB, free: 3.781 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.46e-05/0.004058, allocations: 31.84 kB / 320.9 MB, free: 3.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.004197, allocations: 91.62 kB / 321 MB, free: 3.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.004199, allocations: 0 / 321 MB, free: 3.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.0042, allocations: 0 / 321 MB, free: 3.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.004206, allocations: 0 / 321 MB, free: 3.66 MB / 282.7 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.0005042/0.00471, allocations: 333.9 kB / 321.3 MB, free: 3.305 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.00476, allocations: 12.92 kB / 321.3 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.754e-05/0.004798, allocations: 34.75 kB / 321.4 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.392e-05/0.004832, allocations: 24.83 kB / 321.4 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.005029, allocations: 141.2 kB / 321.5 MB, free: 3.066 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.005042, allocations: 12.12 kB / 321.5 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.005068, allocations: 7.953 kB / 321.5 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.005222, allocations: 81.17 kB / 321.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.00523, allocations: 3.938 kB / 321.6 MB, free: 2.961 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.00524, allocations: 4 kB / 321.6 MB, free: 2.957 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.005247, allocations: 0 / 321.6 MB, free: 2.957 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.435e-05/0.005321, allocations: 47.91 kB / 321.7 MB, free: 2.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004294/0.005751, allocations: 303.8 kB / 322 MB, free: 2.57 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.005875, allocations: 66.53 kB / 322 MB, free: 2.496 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.468e-05/0.00592, allocations: 28.89 kB / 322.1 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.005936, allocations: 0 / 322.1 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.005958, allocations: 30.56 kB / 322.1 MB, free: 2.426 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.005959, allocations: 0 / 322.1 MB, free: 2.426 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002185/0.006178, allocations: 105.5 kB / 322.2 MB, free: 2.316 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.006215, allocations: 55.41 kB / 322.2 MB, free: 2.25 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.006326, allocations: 141.8 kB / 322.4 MB, free: 2.102 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.006339, allocations: 25.7 kB / 322.4 MB, free: 2.07 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.006413, allocations: 116.1 kB / 322.5 MB, free: 1.953 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.569e-05/0.006439, allocations: 15.89 kB / 322.5 MB, free: 1.938 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.238e-05/0.006471, allocations: 17.72 kB / 322.6 MB, free: 1.914 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.833e-05/0.006569, allocations: 322.8 kB / 322.9 MB, free: 1.59 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.23e-05/0.006612, allocations: 19.98 kB / 322.9 MB, free: 1.57 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.393e-05/0.006645, allocations: 20 kB / 322.9 MB, free: 1.551 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.987e-05/0.006725, allocations: 44.84 kB / 323 MB, free: 1.504 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.006729, allocations: 7.938 kB / 323 MB, free: 1.496 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001213/0.00685, allocations: 101.6 kB / 323.1 MB, free: 1.391 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.006864, allocations: 4 kB / 323.1 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.006869, allocations: 80 / 323.1 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.006884, allocations: 4 kB / 323.1 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.007038, allocations: 35.97 kB / 323.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.007047, allocations: 3.984 kB / 323.1 MB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.192e-05/0.007078, allocations: 7.938 kB / 323.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.00709, allocations: 11.98 kB / 323.1 MB, free: 1.324 MB / 282.7 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.446e-05/0.007165, allocations: 113.8 kB / 323.2 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.007182, allocations: 11.89 kB / 323.2 MB, free: 1.191 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.658e-05/0.007209, allocations: 12.47 kB / 323.3 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.007211, allocations: 0 / 323.3 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.007216, allocations: 0 / 323.3 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.00722, allocations: 0 / 323.3 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.007392, allocations: 164.9 kB / 323.4 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.007396, allocations: 7.938 kB / 323.4 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.987e-05/0.007496, allocations: 23.92 kB / 323.5 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.007499, allocations: 8 kB / 323.5 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.007507, allocations: 3.984 kB / 323.5 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.007508, allocations: 0 / 323.5 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.007509, allocations: 0 / 323.5 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.007707, allocations: 207.4 kB / 323.7 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.772e-05/0.007725, allocations: 15.92 kB / 323.7 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.007738, allocations: 0 / 323.7 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.881e-05/0.007777, allocations: 4 kB / 323.7 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.007809, allocations: 3.984 kB / 323.7 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.007812, allocations: 4.062 kB / 323.7 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.88e-05/0.007871, allocations: 110.5 kB / 323.8 MB, free: 0.582 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007871, allocations: 0 / 323.8 MB, free: 0.582 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001542/0.008025, allocations: 16 kB / 323.8 MB, free: 0.5664 MB / 282.7 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.0003739/0.008399, allocations: 0.7357 MB / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001081/0.008507, allocations: 43.98 kB / 324.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.008508, allocations: 0 / 324.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.551e-05/0.008544, allocations: 27.92 kB / 324.6 MB, free: 15.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.008766, allocations: 26.8 kB / 324.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.01003, allocations: 1.554 MB / 326.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.298e-05/0.0101, allocations: 92.27 kB / 326.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.792e-05/0.01014, allocations: 8.25 kB / 326.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.502e-05/0.01019, allocations: 32.48 kB / 326.3 MB, free: 13.92 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01019, allocations: 0 / 326.3 MB, free: 13.92 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.02879, allocations: 3.033 MB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.707/6.736, allocations: 7.234 kB / 329.4 MB, free: 11.01 MB / 298.7 MB " [Timeout remaining time 653] (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.00019992 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,firstOrder1.y,firstOrder2.y Variables in the result:time,firstOrder1.y,firstOrder2.y [Calling sys.exit(0), Time elapsed: 8.676045378670096]