Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001793/0.001793, allocations: 110.5 kB / 18.45 MB, free: 4.59 MB / 14.72 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.002151/0.002151, allocations: 213.6 kB / 21.42 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 207.6 MB / 231.8 MB, free: 3.934 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 52.39 kB / 342.3 MB, free: 10.1 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1082, allocations: 49.13 MB / 391.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003176/0.1113, allocations: 1.682 MB / 393.1 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009957/0.1123, allocations: 0.5325 MB / 393.6 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.409e-05/0.1124, allocations: 3.938 kB / 393.6 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.1125, allocations: 15.86 kB / 393.6 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.1127, allocations: 19.81 kB / 393.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.1129, allocations: 47.92 kB / 393.7 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001979/0.1131, allocations: 103.7 kB / 393.8 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.1132, allocations: 25.05 kB / 393.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.216e-05/0.1133, allocations: 43.84 kB / 393.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.543e-05/0.1134, allocations: 43.77 kB / 393.9 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.1134, allocations: 4 kB / 393.9 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.513e-05/0.1135, allocations: 8 kB / 393.9 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.428e-05/0.1135, allocations: 23.92 kB / 394 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.807e-05/0.1136, allocations: 43.73 kB / 394 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.1137, allocations: 87.52 kB / 394.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1137, allocations: 0 / 394.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1137, allocations: 0 / 394.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.1137, allocations: 0 / 394.1 MB, free: 6.105 MB / 318.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.0006522/0.1144, allocations: 414.9 kB / 394.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1144, allocations: 8.031 kB / 394.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.002e-05/0.1145, allocations: 42.75 kB / 394.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.482e-05/0.1145, allocations: 12.84 kB / 394.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.1148, allocations: 216.6 kB / 394.8 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.1149, allocations: 8.375 kB / 394.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.1149, allocations: 7.938 kB / 394.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.1151, allocations: 77.66 kB / 394.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.1151, allocations: 0 / 394.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.1151, allocations: 0 / 394.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1151, allocations: 7.984 kB / 394.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.1152, allocations: 43.92 kB / 394.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006074/0.1159, allocations: 407.9 kB / 395.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.116, allocations: 58.56 kB / 395.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.382e-05/0.1161, allocations: 32.92 kB / 395.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.1161, allocations: 4 kB / 395.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.1161, allocations: 30.56 kB / 395.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.153e-06/0.1161, allocations: 0 / 395.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003199/0.1165, allocations: 101.5 kB / 395.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.1165, allocations: 55.39 kB / 395.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.1166, allocations: 141.8 kB / 395.7 MB, free: 4.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.1167, allocations: 29.7 kB / 395.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.169e-05/0.1167, allocations: 108.1 kB / 395.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.1168, allocations: 23.94 kB / 395.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.1168, allocations: 21.7 kB / 395.9 MB, free: 4.062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.117, allocations: 322.8 kB / 396.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.837e-05/0.117, allocations: 12.25 kB / 396.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.583e-05/0.1171, allocations: 23.97 kB / 396.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.1172, allocations: 52.84 kB / 396.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1172, allocations: 4 kB / 396.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000186/0.1174, allocations: 97.48 kB / 396.4 MB, free: 3.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1174, allocations: 8 kB / 396.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1174, allocations: 0 / 396.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.1174, allocations: 0 / 396.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.1177, allocations: 35.97 kB / 396.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.1177, allocations: 0 / 396.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.4e-05/0.1177, allocations: 4 kB / 396.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.1177, allocations: 0 / 396.4 MB, free: 3.496 MB / 318.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.000111/0.1178, allocations: 121.8 kB / 396.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.511e-05/0.1179, allocations: 15.84 kB / 396.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.1179, allocations: 16.31 kB / 396.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1179, allocations: 0 / 396.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1179, allocations: 3.938 kB / 396.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1179, allocations: 0 / 396.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.1181, allocations: 197.6 kB / 396.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1181, allocations: 3.938 kB / 396.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001514/0.1183, allocations: 35.91 kB / 396.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1183, allocations: 0 / 396.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.1183, allocations: 0 / 396.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1183, allocations: 0 / 396.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1183, allocations: 0 / 396.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000331/0.1186, allocations: 199.5 kB / 397 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.989e-05/0.1187, allocations: 89.03 kB / 397.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.1187, allocations: 0 / 397.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.026e-05/0.1188, allocations: 4.062 kB / 397.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.1188, allocations: 7.984 kB / 397.1 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.1188, allocations: 7.938 kB / 397.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.764e-05/0.1189, allocations: 115.9 kB / 397.2 MB, free: 2.602 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1189, allocations: 0 / 397.2 MB, free: 2.602 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.1192, allocations: 15.95 kB / 397.3 MB, free: 2.586 MB / 318.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.0006326/0.1198, allocations: 0.7359 MB / 398 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001785/0.12, allocations: 47.92 kB / 398 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.12, allocations: 0 / 398 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.479e-05/0.12, allocations: 23.98 kB / 398.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.1204, allocations: 23.89 kB / 398.1 MB, free: 1.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.1223, allocations: 1.577 MB / 399.7 MB, free: 80 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.1226, allocations: 0.7041 MB / 400.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.876e-05/0.1227, allocations: 7.859 kB / 400.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-05/0.1228, allocations: 35.42 kB / 400.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1228, allocations: 0 / 400.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.1482, allocations: 2.326 MB / 402.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.885/8.034, allocations: 11.91 kB / 402.7 MB, free: 12.91 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 10.801250205011456]