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.001148/0.001148, allocations: 79.7 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.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.0009056/0.0009056, allocations: 173.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8734/0.8734, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.533e-06/1.533e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.505e-05/1.658e-05, allocations: 8.672 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001984/0.002001, allocations: 1.665 MB / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006788/0.002679, allocations: 0.5298 MB / 326.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.156e-05/0.002751, allocations: 7.938 kB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.614e-05/0.002837, allocations: 7.875 kB / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.002997, allocations: 23.84 kB / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001987/0.003195, allocations: 67.72 kB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.003323, allocations: 103.7 kB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.18e-05/0.003415, allocations: 25.3 kB / 327 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.003529, allocations: 71.75 kB / 327.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.791e-05/0.003587, allocations: 31.89 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.003603, allocations: 4 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.607e-05/0.003639, allocations: 12 kB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.59e-05/0.003685, allocations: 19.92 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.003715, allocations: 27.91 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.003844, allocations: 91.62 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.003846, allocations: 0 / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.003846, allocations: 0 / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.00385, allocations: 0 / 327.2 MB, free: 13.24 MB / 298.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.000419/0.004269, allocations: 345.1 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.004304, allocations: 8.031 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.905e-05/0.004333, allocations: 34.75 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.041e-05/0.004424, allocations: 24.83 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.0046, allocations: 150.2 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.004611, allocations: 4.375 kB / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.004634, allocations: 8.375 kB / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.004759, allocations: 93.84 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.004766, allocations: 7.922 kB / 327.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-06/0.004776, allocations: 4 kB / 327.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.00478, allocations: 0 / 327.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.768e-05/0.004848, allocations: 46.78 kB / 327.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003549/0.005203, allocations: 307.6 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.005306, allocations: 62.62 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.879e-05/0.005345, allocations: 28.86 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.005356, allocations: 0 / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.005375, allocations: 38.55 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 8.92e-07/0.005376, allocations: 0 / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001814/0.005557, allocations: 97.56 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/0.005584, allocations: 55.34 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.253e-05/0.005666, allocations: 145.4 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.005677, allocations: 29.7 kB / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.385e-05/0.005721, allocations: 108.1 kB / 328.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.005741, allocations: 23.94 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.686e-05/0.005768, allocations: 21.72 kB / 328.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.289e-05/0.005841, allocations: 318.8 kB / 329.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.346e-05/0.005875, allocations: 19.98 kB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.053e-05/0.005905, allocations: 27.97 kB / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.524e-05/0.00598, allocations: 52.77 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.005982, allocations: 0 / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.507e-05/0.006077, allocations: 81.64 kB / 329.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.00609, allocations: 11.98 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.006095, allocations: 7.938 kB / 329.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.948e-06/0.006105, allocations: 0 / 329.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.006231, allocations: 35.97 kB / 329.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.006236, allocations: 0 / 329.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.584e-05/0.006262, allocations: 7.953 kB / 329.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.006269, allocations: 4.25 kB / 329.4 MB, free: 10.88 MB / 298.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 6.827e-05/0.006337, allocations: 113.8 kB / 329.5 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.006352, allocations: 15.89 kB / 329.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.018e-05/0.006372, allocations: 16.39 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.006374, allocations: 4 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.006379, allocations: 8 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.006382, allocations: 0 / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.006505, allocations: 160.7 kB / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.006506, allocations: 0 / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.645e-05/0.006573, allocations: 19.98 kB / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.006574, allocations: 0 / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.445e-06/0.006583, allocations: 7.875 kB / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.006584, allocations: 0 / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.006584, allocations: 7.938 kB / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001727/0.006757, allocations: 199.5 kB / 329.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.006772, allocations: 15.84 kB / 330 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.006784, allocations: 7.969 kB / 330 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.904e-05/0.006823, allocations: 3.984 kB / 330 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.361e-05/0.006846, allocations: 7.938 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.006849, allocations: 0 / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.583e-05/0.006905, allocations: 118.4 kB / 330.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.006905, allocations: 0 / 330.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001509/0.007056, allocations: 12 kB / 330.1 MB, free: 10.11 MB / 298.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.0003237/0.007379, allocations: 0.732 MB / 330.8 MB, free: 9.355 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001054/0.007485, allocations: 51.91 kB / 330.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007486, allocations: 0 / 330.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.288e-05/0.007519, allocations: 19.98 kB / 330.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.007734, allocations: 19.98 kB / 330.9 MB, free: 9.266 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.008835, allocations: 1.576 MB / 332.5 MB, free: 7.605 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.912e-05/0.008894, allocations: 89.31 kB / 332.6 MB, free: 7.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.472e-05/0.008928, allocations: 4 kB / 332.6 MB, free: 7.496 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.808e-05/0.008977, allocations: 32.48 kB / 332.6 MB, free: 7.465 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.008977, allocations: 0 / 332.6 MB, free: 7.465 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01513/0.02411, allocations: 3.057 MB / 335.7 MB, free: 4.516 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.994/7.018, allocations: 10.73 kB / 335.7 MB, free: 4.508 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins/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] "" 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.800838901661336]