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.0008646/0.0008646, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009835/0.0009835, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9015/0.9015, allocations: 177.1 MB / 204.3 MB, free: 5.703 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.502e-06/1.502e-06, allocations: 0 / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.934e-05/2.084e-05, allocations: 6.219 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002046/0.002067, allocations: 1.676 MB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006554/0.002722, allocations: 0.5259 MB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.277e-05/0.002795, allocations: 3.938 kB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.777e-05/0.002883, allocations: 11.86 kB / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.003047, allocations: 23.78 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001991/0.003246, allocations: 63.8 kB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.003379, allocations: 111.7 kB / 327 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.085e-05/0.00347, allocations: 21.3 kB / 327 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.003589, allocations: 71.75 kB / 327.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.992e-05/0.003649, allocations: 31.89 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.003665, allocations: 8 kB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.695e-05/0.003702, allocations: 8 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.303e-05/0.003755, allocations: 19.92 kB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.328e-05/0.003789, allocations: 31.84 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.003912, allocations: 87.69 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.003914, allocations: 0 / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.003915, allocations: 0 / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.003918, allocations: 0 / 327.2 MB, free: 13.23 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.000384/0.004302, allocations: 345.1 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.004336, allocations: 12.03 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.839e-05/0.004364, allocations: 34.75 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.053e-05/0.004445, allocations: 24.83 kB / 327.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.004614, allocations: 146.2 kB / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-06/0.004623, allocations: 8.375 kB / 327.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.004643, allocations: 4.375 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.004771, allocations: 93.84 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.004777, allocations: 3.938 kB / 327.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.004786, allocations: 4 kB / 327.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.004791, allocations: 4 kB / 327.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.004972, allocations: 35.97 kB / 327.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003482/0.00532, allocations: 311.7 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.841e-05/0.005419, allocations: 54.59 kB / 328.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.848e-05/0.005457, allocations: 32.89 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.005471, allocations: 4 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.685e-05/0.005487, allocations: 30.56 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 9.42e-07/0.005488, allocations: 0 / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002003/0.005689, allocations: 101.5 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.554e-05/0.005714, allocations: 55.34 kB / 328.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.005826, allocations: 149.4 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.005838, allocations: 25.7 kB / 328.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.53e-05/0.005883, allocations: 112.1 kB / 328.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.005904, allocations: 19.92 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.005935, allocations: 21.72 kB / 328.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.148e-05/0.006006, allocations: 322.8 kB / 329.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.915e-05/0.006056, allocations: 23.98 kB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.074e-05/0.006086, allocations: 23.97 kB / 329.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.118e-05/0.006158, allocations: 48.84 kB / 329.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.006159, allocations: 3.938 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001011/0.00626, allocations: 85.62 kB / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.006271, allocations: 4 kB / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.006276, allocations: 3.938 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.006287, allocations: 8 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.00642, allocations: 35.97 kB / 329.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.006424, allocations: 0 / 329.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.66e-05/0.006451, allocations: 11.94 kB / 329.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.006458, allocations: 256 / 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 5.531e-05/0.006513, allocations: 113.8 kB / 329.5 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.605e-05/0.006529, allocations: 7.953 kB / 329.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.928e-05/0.006548, allocations: 24.34 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.00655, allocations: 4 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.006553, allocations: 4 kB / 329.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.006557, allocations: 7.922 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.006683, allocations: 152.7 kB / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.006684, allocations: 4 kB / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.782e-05/0.006752, allocations: 27.95 kB / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.006753, allocations: 0 / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.006763, allocations: 7.938 kB / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.006764, allocations: 0 / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.006764, allocations: 0 / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001693/0.006934, allocations: 199.5 kB / 329.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.457e-05/0.006948, allocations: 15.88 kB / 330 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.00696, allocations: 3.938 kB / 330 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.072e-05/0.007001, allocations: 8 kB / 330 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.416e-05/0.007025, allocations: 7.922 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.007029, allocations: 4 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.744e-05/0.007076, allocations: 110.4 kB / 330.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007076, allocations: 0 / 330.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000147/0.007223, allocations: 16 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.0003151/0.007538, allocations: 0.732 MB / 330.8 MB, free: 9.355 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.007642, allocations: 43.92 kB / 330.9 MB, free: 9.312 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-06/0.007643, allocations: 3.938 kB / 330.9 MB, free: 9.309 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.355e-05/0.007677, allocations: 23.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.0002134/0.00789, allocations: 23.36 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.001168/0.009058, 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.498e-05/0.009113, allocations: 89.31 kB / 332.6 MB, free: 7.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.297e-05/0.009146, allocations: 3.984 kB / 332.6 MB, free: 7.496 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.009192, allocations: 32.48 kB / 332.6 MB, free: 7.465 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.009192, allocations: 4 kB / 332.6 MB, free: 7.461 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0148/0.02399, allocations: 3.058 MB / 335.7 MB, free: 4.512 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.765/6.789, allocations: 2.812 kB / 335.7 MB, free: 4.512 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 8.451601303182542]