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.001835/0.001835, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.002325/0.002325, allocations: 205.1 kB / 24.48 MB, free: 3.695 MB / 14.72 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 1.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00251/0.00251, allocations: 43.94 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3418, allocations: 53.38 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003022/0.3448, allocations: 1.663 MB / 434 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.3459, allocations: 0.522 MB / 434.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.164e-05/0.346, allocations: 0 / 434.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.3461, allocations: 11.86 kB / 434.5 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.3463, allocations: 27.78 kB / 434.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.3465, allocations: 59.86 kB / 434.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.3467, allocations: 107.6 kB / 434.7 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.3468, allocations: 25.09 kB / 434.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.3469, allocations: 51.83 kB / 434.8 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.576e-05/0.347, allocations: 39.78 kB / 434.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.3471, allocations: 8 kB / 434.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.412e-05/0.3471, allocations: 8 kB / 434.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.753e-05/0.3472, allocations: 27.84 kB / 434.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.704e-05/0.3472, allocations: 35.8 kB / 434.9 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.3474, allocations: 94.39 kB / 435 MB, free: 4.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3474, allocations: 3.938 kB / 435 MB, free: 4.031 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3474, allocations: 0 / 435 MB, free: 4.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.3474, allocations: 0 / 435 MB, free: 4.031 MB / 334.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.000551/0.348, allocations: 333.9 kB / 435.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.348, allocations: 15.97 kB / 435.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.3481, allocations: 24.83 kB / 435.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.3484, allocations: 145 kB / 435.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.3484, allocations: 8.359 kB / 435.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.099e-05/0.3484, allocations: 12.12 kB / 435.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.3486, allocations: 77.59 kB / 435.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.3486, allocations: 11.94 kB / 435.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.3486, allocations: 4 kB / 435.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3486, allocations: 0 / 435.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.3488, allocations: 43.91 kB / 435.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005083/0.3493, allocations: 288.3 kB / 435.9 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.3494, allocations: 58.59 kB / 436 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.831e-05/0.3495, allocations: 28.89 kB / 436 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.3495, allocations: 4 kB / 436 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.3495, allocations: 34.56 kB / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.3495, allocations: 0 / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002856/0.3498, allocations: 93.56 kB / 436.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.3499, allocations: 63.33 kB / 436.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.35, allocations: 145.4 kB / 436.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.35, allocations: 25.7 kB / 436.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/0.3501, allocations: 112.2 kB / 436.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.3501, allocations: 23.78 kB / 436.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.3502, allocations: 21.72 kB / 436.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3503, allocations: 322.8 kB / 436.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.561e-05/0.3504, allocations: 27.98 kB / 436.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.585e-05/0.3504, allocations: 12 kB / 436.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.3505, allocations: 49 kB / 436.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3505, allocations: 0 / 436.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000176/0.3507, allocations: 97.53 kB / 437 MB, free: 1.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.3507, allocations: 7.938 kB / 437 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3507, allocations: 0 / 437 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.3507, allocations: 4 kB / 437 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.351, allocations: 43.97 kB / 437.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.351, allocations: 0 / 437.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.766e-05/0.351, allocations: 3.953 kB / 437.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.351, allocations: 7.984 kB / 437.1 MB, free: 1.75 MB / 334.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.037e-05/0.3511, allocations: 113.8 kB / 437.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/0.3512, allocations: 11.89 kB / 437.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.658e-05/0.3512, allocations: 16.34 kB / 437.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3512, allocations: 0 / 437.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3512, allocations: 4 kB / 437.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3512, allocations: 0 / 437.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.3514, allocations: 145.2 kB / 437.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3514, allocations: 4 kB / 437.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.3515, allocations: 19.98 kB / 437.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3515, allocations: 0 / 437.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.3515, allocations: 3.938 kB / 437.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3515, allocations: 0 / 437.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3515, allocations: 256 / 437.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002962/0.3518, allocations: 207.5 kB / 437.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.35e-05/0.3518, allocations: 11.94 kB / 437.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.3519, allocations: 7.922 kB / 437.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.135e-05/0.3519, allocations: 7.984 kB / 437.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.868e-05/0.352, allocations: 0 / 437.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.352, allocations: 4 kB / 437.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.851e-05/0.3521, allocations: 115.2 kB / 437.8 MB, free: 1.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3521, allocations: 0 / 437.8 MB, free: 1.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.3523, allocations: 15.94 kB / 437.8 MB, free: 1.02 MB / 334.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 9.134e-05/0.3524, allocations: 91.25 kB / 437.9 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.3526, allocations: 52.03 kB / 437.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3526, allocations: 0 / 437.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.428e-05/0.3526, allocations: 31.92 kB / 437.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.3529, allocations: 15.98 kB / 438 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006067/0.3535, allocations: 278.6 kB / 438.2 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.495e-05/0.3536, allocations: 101 kB / 438.3 MB, free: 404 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.3537, allocations: 11.44 kB / 438.3 MB, free: 396 kB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3537, allocations: 0 / 438.3 MB, free: 396 kB / 334.1 MB Notification: Performance of Templates: time 0.003019/0.3567, allocations: 1.252 MB / 439.6 MB, free: 15.13 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/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: 7.227916880976409]