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.001714/0.001714, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001988/0.001988, allocations: 194.3 kB / 23.71 MB, free: 4.406 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.437/1.437, allocations: 225.7 MB / 252.5 MB, free: 12.83 MB / 206.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: 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 0.001564/0.001564, allocations: 43.94 kB / 370.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2451, allocations: 52.18 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002924/0.248, allocations: 1.665 MB / 424.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008565/0.2489, allocations: 466.9 kB / 425.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.315e-05/0.249, allocations: 0 / 425.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.892e-05/0.2491, allocations: 11.86 kB / 425.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.2493, allocations: 27.8 kB / 425.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001871/0.2494, allocations: 47.88 kB / 425.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.2496, allocations: 107.7 kB / 425.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.2498, allocations: 25.09 kB / 425.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.179e-05/0.2499, allocations: 43.84 kB / 425.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.857e-05/0.25, allocations: 39.72 kB / 425.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.25, allocations: 4 kB / 425.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.75e-05/0.25, allocations: 8 kB / 425.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.719e-05/0.25, allocations: 23.86 kB / 425.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.742e-05/0.2501, allocations: 31.8 kB / 425.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.2502, allocations: 83.36 kB / 425.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2502, allocations: 0 / 425.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2502, allocations: 4 kB / 425.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.2502, allocations: 0 / 425.6 MB, free: 11.9 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.0005747/0.2508, allocations: 344.4 kB / 426 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.2509, allocations: 12.03 kB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.512e-05/0.2509, allocations: 8.891 kB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.2511, allocations: 150.7 kB / 426.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.433e-06/0.2511, allocations: 0 / 426.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.2512, allocations: 12 kB / 426.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.2514, allocations: 85.59 kB / 426.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.2514, allocations: 0 / 426.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.2514, allocations: 0 / 426.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.2514, allocations: 3.938 kB / 426.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.2515, allocations: 50.86 kB / 426.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.252, allocations: 280.2 kB / 426.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001498/0.2522, allocations: 58.62 kB / 426.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.239e-05/0.2522, allocations: 32.84 kB / 426.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.2523, allocations: 4 kB / 426.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.2523, allocations: 30.56 kB / 426.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.2523, allocations: 0 / 426.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002915/0.2526, allocations: 105.5 kB / 426.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.2526, allocations: 51.41 kB / 426.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.2528, allocations: 147.4 kB / 427 MB, free: 10.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.2528, allocations: 25.7 kB / 427 MB, free: 10.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.431e-05/0.2528, allocations: 116.1 kB / 427.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.2529, allocations: 11.91 kB / 427.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.2529, allocations: 25.7 kB / 427.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.2531, allocations: 322.8 kB / 427.5 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.346e-05/0.2531, allocations: 20.23 kB / 427.5 MB, free: 9.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.159e-05/0.2532, allocations: 19.98 kB / 427.5 MB, free: 9.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.2533, allocations: 56.78 kB / 427.6 MB, free: 9.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2533, allocations: 0 / 427.6 MB, free: 9.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001722/0.2535, allocations: 85.58 kB / 427.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2535, allocations: 7.984 kB / 427.6 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.2535, allocations: 4 kB / 427.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.2535, allocations: 0 / 427.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.2537, allocations: 39.97 kB / 427.7 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.2537, allocations: 4 kB / 427.7 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.64e-05/0.2538, allocations: 7.891 kB / 427.7 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.2538, allocations: 4 kB / 427.7 MB, free: 9.648 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.445e-05/0.2539, allocations: 117.8 kB / 427.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.33e-05/0.2539, allocations: 11.89 kB / 427.8 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.254, allocations: 12.39 kB / 427.8 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.254, allocations: 11.98 kB / 427.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.254, allocations: 0 / 427.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.254, allocations: 0 / 427.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/0.2541, allocations: 129.3 kB / 428 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.2541, allocations: 0 / 428 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.2543, allocations: 31.86 kB / 428 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2543, allocations: 0 / 428 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.2543, allocations: 7.984 kB / 428 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2543, allocations: 0 / 428 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2543, allocations: 240 / 428 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.2546, allocations: 199.5 kB / 428.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.658e-05/0.2546, allocations: 19.88 kB / 428.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.2546, allocations: 3.938 kB / 428.2 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.684e-05/0.2547, allocations: 7.938 kB / 428.2 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.2548, allocations: 3.984 kB / 428.2 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.2548, allocations: 0 / 428.2 MB, free: 9.047 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.63e-05/0.2549, allocations: 113.3 kB / 428.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2549, allocations: 0 / 428.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002336/0.2551, allocations: 12 kB / 428.4 MB, free: 8.926 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.266e-05/0.2552, allocations: 99.3 kB / 428.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001705/0.2554, allocations: 52.02 kB / 428.5 MB, free: 8.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2554, allocations: 4 kB / 428.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.332e-05/0.2554, allocations: 23.92 kB / 428.5 MB, free: 8.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.2557, allocations: 26.05 kB / 428.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006079/0.2563, allocations: 261.4 kB / 428.8 MB, free: 8.438 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.201e-05/0.2564, allocations: 88.19 kB / 428.9 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.525e-05/0.2565, allocations: 7.984 kB / 428.9 MB, free: 8.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.2565, allocations: 11.44 kB / 428.9 MB, free: 8.312 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2565, allocations: 0 / 428.9 MB, free: 8.312 MB / 334.1 MB Notification: Performance of Templates: time 0.003828/0.2603, allocations: 1.018 MB / 429.9 MB, free: 7.312 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.467865329235792]