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.001871/0.001871, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 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.001725/0.001725, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 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 1.487/1.487, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001591/0.001591, allocations: 51.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1129, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003357/0.1163, allocations: 1.7 MB / 419.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009915/0.1172, allocations: 494.7 kB / 420 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.878e-05/0.1173, allocations: 0 / 420 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.1175, allocations: 19.8 kB / 420 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.1177, allocations: 27.8 kB / 420 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000189/0.1179, allocations: 39.94 kB / 420 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001942/0.1181, allocations: 99.69 kB / 420.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.1182, allocations: 29.11 kB / 420.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.1183, allocations: 47.77 kB / 420.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.932e-05/0.1184, allocations: 35.78 kB / 420.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.1184, allocations: 8 kB / 420.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.799e-05/0.1184, allocations: 12 kB / 420.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.469e-05/0.1185, allocations: 19.92 kB / 420.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.862e-05/0.1186, allocations: 39.73 kB / 420.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.1187, allocations: 91.45 kB / 420.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1187, allocations: 0 / 420.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1187, allocations: 4 kB / 420.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1187, allocations: 0 / 420.4 MB, free: 9.973 MB / 350.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.0006452/0.1194, allocations: 414.9 kB / 420.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1194, allocations: 12.03 kB / 420.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.905e-05/0.1195, allocations: 38.75 kB / 420.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.1195, allocations: 8.891 kB / 420.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.1198, allocations: 216.2 kB / 421.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.1199, allocations: 4 kB / 421.1 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.325e-05/0.1199, allocations: 8 kB / 421.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.1201, allocations: 77.66 kB / 421.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.1201, allocations: 0 / 421.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.1201, allocations: 4 kB / 421.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1201, allocations: 0 / 421.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.1202, allocations: 43.92 kB / 421.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006051/0.1208, allocations: 404 kB / 421.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.121, allocations: 62.53 kB / 421.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.802e-05/0.1211, allocations: 32.89 kB / 421.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.1211, allocations: 3.938 kB / 421.7 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.1211, allocations: 34.56 kB / 421.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.1211, allocations: 3.938 kB / 421.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003099/0.1215, allocations: 89.62 kB / 421.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.1215, allocations: 59.33 kB / 421.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.1216, allocations: 151.8 kB / 422 MB, free: 8.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.1217, allocations: 25.7 kB / 422.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.685e-05/0.1217, allocations: 112.2 kB / 422.2 MB, free: 7.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.1218, allocations: 19.8 kB / 422.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.1218, allocations: 25.7 kB / 422.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.122, allocations: 318.8 kB / 422.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.089e-05/0.122, allocations: 16 kB / 422.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.168e-05/0.1221, allocations: 23.97 kB / 422.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.1222, allocations: 52.78 kB / 422.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1222, allocations: 4 kB / 422.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001764/0.1224, allocations: 85.62 kB / 422.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1224, allocations: 4 kB / 422.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.1224, allocations: 0 / 422.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.1224, allocations: 7.938 kB / 422.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.1227, allocations: 35.97 kB / 422.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.1227, allocations: 0 / 422.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.674e-05/0.1227, allocations: 11.95 kB / 422.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.1227, allocations: 0 / 422.8 MB, free: 7.367 MB / 350.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 0.0001151/0.1229, allocations: 125.8 kB / 422.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.1229, allocations: 7.953 kB / 422.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/0.1229, allocations: 12.31 kB / 422.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1229, allocations: 0 / 422.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1229, allocations: 256 / 422.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1229, allocations: 0 / 422.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002576/0.1232, allocations: 201.6 kB / 423.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1232, allocations: 7.984 kB / 423.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.1234, allocations: 23.97 kB / 423.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1234, allocations: 0 / 423.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.1234, allocations: 4 kB / 423.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.1234, allocations: 0 / 423.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1234, allocations: 3.938 kB / 423.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.1237, allocations: 203.4 kB / 423.4 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.237e-05/0.1238, allocations: 89.08 kB / 423.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.1238, allocations: 4.031 kB / 423.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.297e-05/0.1239, allocations: 0 / 423.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.712e-05/0.1239, allocations: 15.92 kB / 423.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.1239, allocations: 0 / 423.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.198e-05/0.124, allocations: 108.8 kB / 423.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.124, allocations: 0 / 423.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002359/0.1243, allocations: 19.88 kB / 423.6 MB, free: 6.457 MB / 350.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.0006692/0.1249, allocations: 0.7396 MB / 424.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001824/0.1251, allocations: 39.98 kB / 424.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1251, allocations: 4 kB / 424.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.135e-05/0.1252, allocations: 27.92 kB / 424.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.1255, allocations: 20.05 kB / 424.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.1275, allocations: 1.57 MB / 426 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.1279, allocations: 0.7008 MB / 426.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.066e-05/0.1279, allocations: 12 kB / 426.7 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.017e-05/0.128, allocations: 31.42 kB / 426.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.128, allocations: 3.938 kB / 426.7 MB, free: 3.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.1563, allocations: 2.319 MB / 429.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.29/8.446, allocations: 18.11 kB / 429.1 MB, free: 0.9141 MB / 350.1 MB " [Timeout remaining time 651] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.072024504188448]