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.001074/0.001074, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 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.001076/0.001076, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 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 0.9313/0.9313, allocations: 173.3 MB / 201.1 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.255e-06/2.255e-06, allocations: 4 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.876e-05/2.101e-05, allocations: 6.312 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002104/0.002125, allocations: 1.705 MB / 269.7 MB, free: 4.695 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006988/0.002824, allocations: 482.7 kB / 270.1 MB, free: 4.223 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.577e-05/0.0029, allocations: 3.938 kB / 270.1 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.003014, allocations: 11.86 kB / 270.2 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.003211, allocations: 31.72 kB / 270.2 MB, free: 4.176 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001757/0.003387, allocations: 47.92 kB / 270.2 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.003539, allocations: 103.6 kB / 270.3 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.00364, allocations: 21.3 kB / 270.4 MB, free: 4.004 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.683e-05/0.003727, allocations: 63.81 kB / 270.4 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.28e-05/0.00379, allocations: 27.91 kB / 270.4 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.003809, allocations: 7.938 kB / 270.5 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.203e-05/0.003821, allocations: 8 kB / 270.5 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.601e-05/0.003877, allocations: 23.91 kB / 270.5 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.802e-05/0.003915, allocations: 27.92 kB / 270.5 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.004032, allocations: 63.72 kB / 270.6 MB, free: 3.785 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.004034, allocations: 0 / 270.6 MB, free: 3.785 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.004035, allocations: 0 / 270.6 MB, free: 3.785 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.004039, allocations: 0 / 270.6 MB, free: 3.785 MB / 250.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.0004939/0.004533, allocations: 436.2 kB / 271 MB, free: 3.324 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.004575, allocations: 12.86 kB / 271 MB, free: 3.312 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.62e-05/0.004621, allocations: 16.84 kB / 271 MB, free: 3.297 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.004801, allocations: 152 kB / 271.2 MB, free: 3.125 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.004813, allocations: 4.375 kB / 271.2 MB, free: 3.121 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.004846, allocations: 15.89 kB / 271.2 MB, free: 3.105 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.004984, allocations: 82.3 kB / 271.3 MB, free: 3.016 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.004992, allocations: 0 / 271.3 MB, free: 3.016 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.128e-06/0.005001, allocations: 4 kB / 271.3 MB, free: 3.012 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.00501, allocations: 4 kB / 271.3 MB, free: 3.008 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.085e-05/0.005051, allocations: 25.89 kB / 271.3 MB, free: 2.984 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004137/0.005464, allocations: 331.5 kB / 271.6 MB, free: 2.625 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.005567, allocations: 51.12 kB / 271.7 MB, free: 2.562 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.078e-05/0.005597, allocations: 15.69 kB / 271.7 MB, free: 2.543 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.005616, allocations: 4 kB / 271.7 MB, free: 2.539 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.005637, allocations: 37.39 kB / 271.7 MB, free: 2.492 MB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.005638, allocations: 4 kB / 271.7 MB, free: 2.488 MB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001664/0.005804, allocations: 77.5 kB / 271.8 MB, free: 2.406 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/0.00583, allocations: 51.41 kB / 271.9 MB, free: 2.344 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.421e-05/0.005924, allocations: 193.9 kB / 272.1 MB, free: 2.137 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.107e-05/0.005935, allocations: 29.7 kB / 272.1 MB, free: 2.102 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.891e-05/0.005994, allocations: 158.8 kB / 272.2 MB, free: 1.941 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.206e-05/0.006016, allocations: 23.92 kB / 272.3 MB, free: 1.918 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.006046, allocations: 27.38 kB / 272.3 MB, free: 1.883 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.006164, allocations: 0.4923 MB / 272.8 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.178e-05/0.006186, allocations: 4 kB / 272.8 MB, free: 1.375 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.815e-05/0.006204, allocations: 15.98 kB / 272.8 MB, free: 1.359 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.885e-05/0.006253, allocations: 27.69 kB / 272.8 MB, free: 1.328 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.006255, allocations: 4 kB / 272.8 MB, free: 1.324 MB / 250.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.659e-05/0.006341, allocations: 65.58 kB / 272.9 MB, free: 1.254 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.006356, allocations: 7.938 kB / 272.9 MB, free: 1.246 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.00636, allocations: 0 / 272.9 MB, free: 1.246 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.006378, allocations: 7.984 kB / 272.9 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.00653, allocations: 40.22 kB / 273 MB, free: 1.199 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.006535, allocations: 0 / 273 MB, free: 1.199 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.478e-05/0.006559, allocations: 4 kB / 273 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.006567, allocations: 11.94 kB / 273 MB, free: 1.184 MB / 250.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.566e-05/0.006632, allocations: 156.6 kB / 273.1 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/0.006653, allocations: 15.89 kB / 273.1 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.006678, allocations: 12.47 kB / 273.2 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.00668, allocations: 0 / 273.2 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.006684, allocations: 0 / 273.2 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.006688, allocations: 4 kB / 273.2 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.006798, allocations: 148.5 kB / 273.3 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.006798, allocations: 0 / 273.3 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.191e-05/0.00687, allocations: 23.97 kB / 273.3 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.006872, allocations: 4 kB / 273.3 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.006887, allocations: 3.938 kB / 273.3 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.006888, allocations: 0 / 273.3 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.006889, allocations: 0 / 273.3 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.007052, allocations: 227.8 kB / 273.6 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.423e-05/0.007066, allocations: 11.89 kB / 273.6 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.007082, allocations: 3.938 kB / 273.6 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.738e-05/0.00712, allocations: 0 / 273.6 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.007158, allocations: 7.984 kB / 273.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.007162, allocations: 0 / 273.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.317e-05/0.007225, allocations: 154.1 kB / 273.7 MB, free: 372 kB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007225, allocations: 4.031 kB / 273.7 MB, free: 368 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001575/0.007383, allocations: 12 kB / 273.7 MB, free: 356 kB / 250.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 8.67e-05/0.007469, allocations: 99.17 kB / 273.8 MB, free: 248 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001011/0.00757, allocations: 35.67 kB / 273.9 MB, free: 208 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.82e-07/0.007571, allocations: 0 / 273.9 MB, free: 208 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.775e-05/0.007599, allocations: 23.62 kB / 273.9 MB, free: 180 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.007829, allocations: 31.41 kB / 273.9 MB, free: 152 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000646/0.008475, allocations: 266.5 kB / 274.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.742e-05/0.008512, allocations: 63.34 kB / 274.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.948e-05/0.008542, allocations: 7.859 kB / 274.3 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.15e-05/0.008573, allocations: 12.5 kB / 274.3 MB, free: 15.76 MB / 266.7 MB Notification: Performance of SimCode: time 7.12e-07/0.008574, allocations: 0 / 274.3 MB, free: 15.76 MB / 266.7 MB Notification: Performance of Templates: time 0.00258/0.01115, allocations: 0.9755 MB / 275.2 MB, free: 14.8 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.876540613360703]