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.001905/0.001905, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.002318/0.002318, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.453/1.453, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.001515/0.001515, allocations: 47.92 kB / 370.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2643, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002807/0.2671, allocations: 1.715 MB / 424.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008757/0.2679, allocations: 494.8 kB / 425.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.206e-05/0.268, allocations: 3.938 kB / 425.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.673e-05/0.2681, allocations: 11.86 kB / 425.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.2683, allocations: 31.78 kB / 425.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.2685, allocations: 47.94 kB / 425.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.2687, allocations: 103.6 kB / 425.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.2688, allocations: 21.3 kB / 425.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.807e-05/0.2689, allocations: 43.84 kB / 425.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.573e-05/0.2689, allocations: 39.78 kB / 425.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.239e-05/0.269, allocations: 4 kB / 425.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.822e-05/0.269, allocations: 8 kB / 425.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.587e-05/0.269, allocations: 23.86 kB / 425.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.716e-05/0.2691, allocations: 47.66 kB / 425.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.2692, allocations: 92.84 kB / 425.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2692, allocations: 0 / 425.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2692, allocations: 0 / 425.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.2692, allocations: 0 / 425.8 MB, free: 12.03 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.0005576/0.2698, allocations: 337.8 kB / 426.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.2698, allocations: 8.031 kB / 426.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.233e-05/0.2699, allocations: 12.89 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.2701, allocations: 150.6 kB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.2701, allocations: 8 kB / 426.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/0.2702, allocations: 8 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.2704, allocations: 77.17 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.2704, allocations: 4 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.2704, allocations: 7.938 kB / 426.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.2704, allocations: 0 / 426.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.2705, allocations: 43.91 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.2711, allocations: 387 kB / 426.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.2712, allocations: 54.59 kB / 426.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.656e-05/0.2713, allocations: 28.89 kB / 426.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.2713, allocations: 3.984 kB / 426.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.2714, allocations: 38.5 kB / 426.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.2714, allocations: 0 / 426.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003104/0.2717, allocations: 97.56 kB / 427 MB, free: 10.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.2717, allocations: 55.39 kB / 427.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.2719, allocations: 147.5 kB / 427.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.2719, allocations: 29.64 kB / 427.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.006e-05/0.2719, allocations: 108.2 kB / 427.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.734e-05/0.272, allocations: 23.86 kB / 427.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.153e-05/0.272, allocations: 21.7 kB / 427.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2721, allocations: 322.8 kB / 427.7 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.325e-05/0.2722, allocations: 12 kB / 427.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.326e-05/0.2723, allocations: 23.98 kB / 427.7 MB, free: 9.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.2724, allocations: 44.84 kB / 427.8 MB, free: 9.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2724, allocations: 3.938 kB / 427.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001848/0.2726, allocations: 97.56 kB / 427.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.2726, allocations: 7.438 kB / 427.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.2726, allocations: 256 / 427.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.2726, allocations: 0 / 427.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.2728, allocations: 39.97 kB / 427.9 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.2728, allocations: 4 kB / 427.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.026e-05/0.2729, allocations: 11.89 kB / 427.9 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.2729, allocations: 4 kB / 427.9 MB, free: 9.66 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.511e-05/0.273, allocations: 125.8 kB / 428.1 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.273, allocations: 7.953 kB / 428.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.2731, allocations: 8.406 kB / 428.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2731, allocations: 0 / 428.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.2731, allocations: 4 kB / 428.1 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2731, allocations: 0 / 428.1 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002242/0.2733, allocations: 172.6 kB / 428.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2733, allocations: 3.938 kB / 428.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.2734, allocations: 27.91 kB / 428.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2735, allocations: 0 / 428.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.2735, allocations: 8 kB / 428.3 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2735, allocations: 0 / 428.3 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2735, allocations: 4 kB / 428.3 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.2738, allocations: 195.4 kB / 428.5 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.404e-05/0.2738, allocations: 11.94 kB / 428.5 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.2738, allocations: 4 kB / 428.5 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.734e-05/0.2739, allocations: 4 kB / 428.5 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.243e-05/0.2739, allocations: 8.047 kB / 428.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.2739, allocations: 4 kB / 428.5 MB, free: 9.016 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.052e-05/0.274, allocations: 108.9 kB / 428.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.274, allocations: 0 / 428.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002374/0.2743, allocations: 19.94 kB / 428.6 MB, free: 8.891 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 8.177e-05/0.2743, allocations: 91.25 kB / 428.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001808/0.2745, allocations: 51.91 kB / 428.8 MB, free: 8.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2745, allocations: 4 kB / 428.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.541e-05/0.2746, allocations: 23.88 kB / 428.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.2749, allocations: 27.72 kB / 428.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005984/0.2755, allocations: 261.6 kB / 429.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.2758, allocations: 0.7041 MB / 429.8 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.397e-05/0.2759, allocations: 7.984 kB / 429.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.632e-05/0.2759, allocations: 11.44 kB / 429.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2759, allocations: 0 / 429.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of Templates: time 0.003675/0.2796, allocations: 0.936 MB / 430.8 MB, free: 6.727 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.561898452229798]