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.001013/0.001013, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.004588/0.004588, allocations: 160.4 kB / 24.7 MB, free: 9.43 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.9083/0.9083, allocations: 177.2 MB / 205 MB, free: 5.738 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: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Blocks.Examples.InverseModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.046e-05/3.258e-05, allocations: 4.812 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002056/0.002089, allocations: 1.679 MB / 327.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007784/0.002867, allocations: 0.5259 MB / 328 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.851e-05/0.002946, allocations: 0 / 328 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.97e-05/0.003046, allocations: 15.86 kB / 328 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.003238, allocations: 23.8 kB / 328.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.003469, allocations: 67.78 kB / 328.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.003616, allocations: 107.6 kB / 328.2 MB, free: 13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.003725, allocations: 25.3 kB / 328.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.003862, allocations: 63.81 kB / 328.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.946e-05/0.003932, allocations: 31.88 kB / 328.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.923e-05/0.003951, allocations: 8 kB / 328.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.353e-05/0.003995, allocations: 15.94 kB / 328.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.523e-05/0.00405, allocations: 23.86 kB / 328.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.004086, allocations: 27.91 kB / 328.4 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.004244, allocations: 83.7 kB / 328.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.004247, allocations: 4 kB / 328.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.004248, allocations: 0 / 328.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.004252, allocations: 0 / 328.5 MB, free: 12.72 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.0004316/0.004684, allocations: 337.1 kB / 328.8 MB, free: 12.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.004718, allocations: 8.031 kB / 328.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.801e-05/0.004816, allocations: 28.83 kB / 328.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.005007, allocations: 154.1 kB / 329 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.005018, allocations: 8.375 kB / 329 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.005045, allocations: 8.375 kB / 329 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.005184, allocations: 74.22 kB / 329.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.005192, allocations: 3.938 kB / 329.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.005204, allocations: 8 kB / 329.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.005209, allocations: 0 / 329.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.134e-05/0.00528, allocations: 47.91 kB / 329.2 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003744/0.005654, allocations: 284.3 kB / 329.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000113/0.005767, allocations: 62.53 kB / 329.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.14e-05/0.005809, allocations: 28.89 kB / 329.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.391e-05/0.005823, allocations: 3.938 kB / 329.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.005842, allocations: 38.5 kB / 329.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.005843, allocations: 0 / 329.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001989/0.006042, allocations: 97.56 kB / 329.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.00607, allocations: 51.41 kB / 329.7 MB, free: 11.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.245e-05/0.006162, allocations: 157.4 kB / 329.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.006176, allocations: 25.7 kB / 329.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.94e-05/0.006225, allocations: 108.2 kB / 330 MB, free: 11.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/0.006251, allocations: 27.83 kB / 330 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.006281, allocations: 17.72 kB / 330 MB, free: 11.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.955e-05/0.00637, allocations: 322.8 kB / 330.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.406e-05/0.006404, allocations: 16 kB / 330.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.833e-05/0.006433, allocations: 23.98 kB / 330.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.956e-05/0.006502, allocations: 48.84 kB / 330.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.006504, allocations: 0 / 330.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.713e-05/0.006601, allocations: 89.56 kB / 330.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.006613, allocations: 4 kB / 330.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.006617, allocations: 0 / 330.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.006628, allocations: 0 / 330.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.006761, allocations: 39.91 kB / 330.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.006766, allocations: 4 kB / 330.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.632e-05/0.006792, allocations: 15.89 kB / 330.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.006802, allocations: 4 kB / 330.6 MB, free: 10.45 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 6.515e-05/0.006868, allocations: 117.8 kB / 330.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.006883, allocations: 7.953 kB / 330.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.937e-05/0.006903, allocations: 8.469 kB / 330.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.006904, allocations: 4 kB / 330.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.006909, allocations: 3.938 kB / 330.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.006912, allocations: 0 / 330.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.007026, allocations: 133.3 kB / 330.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.007027, allocations: 0 / 330.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.972e-05/0.007096, allocations: 31.92 kB / 330.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.007099, allocations: 4 kB / 330.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.007107, allocations: 256 / 330.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.007109, allocations: 4 kB / 330.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.00711, allocations: 0 / 330.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.007296, allocations: 203.4 kB / 331.1 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.164e-05/0.007308, allocations: 11.92 kB / 331.1 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.007321, allocations: 4 kB / 331.1 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.983e-05/0.007361, allocations: 7.984 kB / 331.1 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.831e-05/0.007389, allocations: 8 kB / 331.1 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.007392, allocations: 0 / 331.1 MB, free: 9.855 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.016e-05/0.007442, allocations: 115.2 kB / 331.3 MB, free: 9.742 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007442, allocations: 0 / 331.3 MB, free: 9.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001486/0.007591, allocations: 19.95 kB / 331.3 MB, free: 9.723 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 6.492e-05/0.007655, allocations: 95.19 kB / 331.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001112/0.007767, allocations: 47.97 kB / 331.4 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.007768, allocations: 0 / 331.4 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.295e-05/0.007801, allocations: 23.98 kB / 331.4 MB, free: 9.551 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.008024, allocations: 27.92 kB / 331.5 MB, free: 9.523 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00043/0.008454, allocations: 271.7 kB / 331.7 MB, free: 9.227 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.426e-05/0.008519, allocations: 89.31 kB / 331.8 MB, free: 9.117 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.148e-05/0.00855, allocations: 12.5 kB / 331.8 MB, free: 9.105 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.00855, allocations: 4 kB / 331.8 MB, free: 9.102 MB / 298.7 MB Notification: Performance of Templates: time 0.001947/0.0105, allocations: 1.273 MB / 333.1 MB, free: 7.832 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 480] 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: 4.173181278631091]