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.001774/0.001774, allocations: 124.7 kB / 17.79 MB, free: 5.246 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.00209/0.00209, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.44/1.44, allocations: 225.6 MB / 249.1 MB, free: 3.602 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.001449/0.001449, allocations: 47.92 kB / 365.6 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09154/0.09299, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002823/0.09582, allocations: 1.696 MB / 419.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008281/0.09664, allocations: 486.8 kB / 419.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.206e-05/0.09672, allocations: 7.938 kB / 419.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.09683, allocations: 15.86 kB / 420 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.09701, allocations: 31.78 kB / 420 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.09716, allocations: 39.94 kB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.09733, allocations: 103.6 kB / 420.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.09743, allocations: 21.11 kB / 420.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.518e-05/0.09752, allocations: 43.84 kB / 420.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.35e-05/0.0976, allocations: 39.78 kB / 420.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.09762, allocations: 8 kB / 420.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.42e-05/0.09764, allocations: 8 kB / 420.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.831e-05/0.0977, allocations: 19.92 kB / 420.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.523e-05/0.09775, allocations: 55.59 kB / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.0979, allocations: 87.52 kB / 420.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.0979, allocations: 0 / 420.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.0979, allocations: 0 / 420.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.09791, allocations: 0 / 420.4 MB, free: 9.961 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.0005823/0.09849, allocations: 414.9 kB / 420.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.09853, allocations: 16.03 kB / 420.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.048e-05/0.09857, allocations: 34.75 kB / 420.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.686e-05/0.0986, allocations: 20.81 kB / 420.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.09886, allocations: 200.3 kB / 421.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.09887, allocations: 4 kB / 421.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.0989, allocations: 8 kB / 421.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.09908, allocations: 77.66 kB / 421.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.09909, allocations: 0 / 421.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.0991, allocations: 4 kB / 421.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.0991, allocations: 4 kB / 421.2 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.09923, allocations: 51.84 kB / 421.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005587/0.09978, allocations: 408 kB / 421.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.09993, allocations: 58.59 kB / 421.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.537e-05/0.09999, allocations: 28.89 kB / 421.7 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.1, allocations: 3.938 kB / 421.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.1, allocations: 34.56 kB / 421.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.1, allocations: 0 / 421.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002766/0.1003, allocations: 105.5 kB / 421.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.1004, allocations: 51.41 kB / 421.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.1005, allocations: 143.7 kB / 422 MB, free: 8.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.1005, allocations: 29.7 kB / 422.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.999e-05/0.1006, allocations: 108.2 kB / 422.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.1006, allocations: 27.77 kB / 422.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.864e-05/0.1007, allocations: 17.72 kB / 422.2 MB, free: 7.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1008, allocations: 326.8 kB / 422.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.009e-05/0.1009, allocations: 15.98 kB / 422.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.762e-05/0.1009, allocations: 16 kB / 422.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.101, allocations: 56.78 kB / 422.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.101, allocations: 0 / 422.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001713/0.1012, allocations: 97.7 kB / 422.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.1012, allocations: 6.188 kB / 422.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.1012, allocations: 0 / 422.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1012, allocations: 0 / 422.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.1014, allocations: 35.97 kB / 422.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.1014, allocations: 4 kB / 422.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.384e-05/0.1015, allocations: 11.94 kB / 422.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.1015, allocations: 3.938 kB / 422.8 MB, free: 7.344 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 9.201e-05/0.1016, allocations: 121.8 kB / 422.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.975e-05/0.1016, allocations: 7.953 kB / 422.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.1017, allocations: 12.31 kB / 422.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1017, allocations: 0 / 422.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.1017, allocations: 4 kB / 422.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.1017, allocations: 0 / 422.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.1019, allocations: 197.6 kB / 423.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1019, allocations: 11.92 kB / 423.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.102, allocations: 19.98 kB / 423.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.102, allocations: 0 / 423.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.102, allocations: 0 / 423.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.102, allocations: 0 / 423.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.102, allocations: 256 / 423.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002869/0.1023, allocations: 211.4 kB / 423.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.1024, allocations: 93.11 kB / 423.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.1024, allocations: 0 / 423.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.1025, allocations: 11.92 kB / 423.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/0.1025, allocations: 0 / 423.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.1025, allocations: 0 / 423.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.206e-05/0.1026, allocations: 115.2 kB / 423.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1026, allocations: 3.938 kB / 423.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.1028, allocations: 15.94 kB / 423.6 MB, free: 6.434 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.0005659/0.1034, allocations: 0.7319 MB / 424.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.1036, allocations: 51.91 kB / 424.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1036, allocations: 0 / 424.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.098e-05/0.1036, allocations: 20 kB / 424.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.1039, allocations: 33.94 kB / 424.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001793/0.1057, allocations: 1.565 MB / 426 MB, free: 3.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.106, allocations: 0.7085 MB / 426.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.659e-05/0.1061, allocations: 15.97 kB / 426.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.097e-05/0.1062, allocations: 27.44 kB / 426.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1062, allocations: 0 / 426.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.1328, allocations: 2.307 MB / 429 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.59/7.723, allocations: 11.84 kB / 429.1 MB, free: 0.9023 MB / 350.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.085133815184236]