Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.0009513/0.0009513, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001493/0.001493, allocations: 161.3 kB / 24.99 MB, free: 9.273 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.9176/0.9176, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.237e-05/1.403e-05, allocations: 2.312 kB / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002334/0.002348, allocations: 2.383 MB / 275.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008715/0.003219, allocations: 0.6347 MB / 276.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.003341, allocations: 7.938 kB / 276.1 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.003464, allocations: 35.66 kB / 276.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.00358, allocations: 83.27 kB / 276.2 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.003799, allocations: 67.84 kB / 276.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.004025, allocations: 266.6 kB / 276.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.004165, allocations: 60.55 kB / 276.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002052/0.00437, allocations: 163.5 kB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.93e-05/0.004469, allocations: 71.8 kB / 276.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.0045, allocations: 20 kB / 276.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.975e-05/0.004559, allocations: 20 kB / 276.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.0046, allocations: 55.75 kB / 276.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.908e-05/0.00469, allocations: 79.83 kB / 277 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.0049, allocations: 175.3 kB / 277.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.004902, allocations: 0 / 277.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.004903, allocations: 0 / 277.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.004907, allocations: 0 / 277.2 MB, free: 13.73 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005548/0.005462, allocations: 0.5429 MB / 277.7 MB, free: 13.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.005491, allocations: 8.031 kB / 277.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.005608, allocations: 48.78 kB / 277.8 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.005803, allocations: 196.9 kB / 277.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.005817, allocations: 12.88 kB / 278 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.099e-05/0.005848, allocations: 20.38 kB / 278 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.006062, allocations: 189.7 kB / 278.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.006073, allocations: 4.141 kB / 278.2 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.006086, allocations: 12.38 kB / 278.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.006093, allocations: 11.88 kB / 278.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.006216, allocations: 74.94 kB / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000663/0.006879, allocations: 0.6763 MB / 278.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.007042, allocations: 122.9 kB / 279.1 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.644e-05/0.007109, allocations: 47.66 kB / 279.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/0.007124, allocations: 4 kB / 279.1 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.007143, allocations: 33.39 kB / 279.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.092e-06/0.007144, allocations: 0 / 279.1 MB, free: 11.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008938/0.008038, allocations: 0.6448 MB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.008068, allocations: 55.41 kB / 279.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.008217, allocations: 225.9 kB / 280.1 MB, free: 10.58 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.008233, allocations: 29.7 kB / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.078e-05/0.008314, allocations: 195.1 kB / 280.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.534e-05/0.008359, allocations: 87.2 kB / 280.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.00841, allocations: 55.36 kB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.008523, allocations: 0.5078 MB / 280.9 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.398e-05/0.008577, allocations: 31.97 kB / 281 MB, free: 9.652 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-05/0.008652, allocations: 82.41 kB / 281 MB, free: 9.551 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.008798, allocations: 141 kB / 281.2 MB, free: 9.395 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.008799, allocations: 0 / 281.2 MB, free: 9.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002487/0.009048, allocations: 217.6 kB / 281.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.009066, allocations: 11.94 kB / 281.4 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.009071, allocations: 0 / 281.4 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001353/0.009206, allocations: 31.8 kB / 281.4 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.009347, allocations: 55.91 kB / 281.5 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009429/0.01029, allocations: 1.803 MB / 283.3 MB, free: 7.141 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.304e-05/0.01035, allocations: 8 kB / 283.3 MB, free: 7.133 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.01036, allocations: 8 kB / 283.3 MB, free: 7.125 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.689e-05/0.01045, allocations: 176.4 kB / 283.5 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.153e-05/0.01048, allocations: 31.86 kB / 283.5 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.551e-05/0.01051, allocations: 29.95 kB / 283.5 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01051, allocations: 4 kB / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.01051, allocations: 0 / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.01052, allocations: 0 / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005318/0.01105, allocations: 0.5686 MB / 284.1 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.01105, allocations: 0 / 284.1 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.01117, allocations: 47.97 kB / 284.2 MB, free: 6.203 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.128e-05/0.01124, allocations: 35.61 kB / 284.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.01126, allocations: 8 kB / 284.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008069/0.01206, allocations: 1.814 MB / 286 MB, free: 4.219 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.01207, allocations: 4 kB / 286 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003403/0.01241, allocations: 387.1 kB / 286.4 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.643e-05/0.01242, allocations: 19.86 kB / 286.4 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.01244, allocations: 7.938 kB / 286.4 MB, free: 3.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.042e-05/0.0125, allocations: 8 kB / 286.4 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.01255, allocations: 23.91 kB / 286.5 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.01256, allocations: 4 kB / 286.5 MB, free: 3.742 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.232e-05/0.01263, allocations: 168.7 kB / 286.6 MB, free: 3.578 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01263, allocations: 0 / 286.6 MB, free: 3.578 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002162/0.01285, allocations: 56 kB / 286.7 MB, free: 3.523 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.137e-05/0.01293, allocations: 103.2 kB / 286.8 MB, free: 3.414 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003662/0.01329, allocations: 317.4 kB / 287.1 MB, free: 3.082 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.0133, allocations: 0 / 287.1 MB, free: 3.082 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.01346, allocations: 257.3 kB / 287.3 MB, free: 2.809 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.01373, allocations: 48.09 kB / 287.4 MB, free: 2.766 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009387/0.01467, allocations: 0.5864 MB / 288 MB, free: 2.145 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.244e-05/0.01472, allocations: 84.31 kB / 288.1 MB, free: 2.043 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.269e-05/0.01478, allocations: 21.94 kB / 288.1 MB, free: 2.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.813e-05/0.01481, allocations: 20.5 kB / 288.1 MB, free: 2 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01481, allocations: 0 / 288.1 MB, free: 2 MB / 266.7 MB Notification: Performance of Templates: time 0.004392/0.01921, allocations: 2.496 MB / 290.6 MB, free: 15.53 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.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.560975827043876]