Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008907/0.0008907, allocations: 88.7 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.0002778, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2213, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09308/0.3145, allocations: 78.41 MB / 479.9 MB, free: 2.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.3147, allocations: 67.97 kB / 480 MB, free: 2.023 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01045/0.3252, allocations: 3.908 MB / 483.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3252, allocations: 0 / 483.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.3252, allocations: 4 kB / 483.9 MB, free: 14.11 MB / 362.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.0006237/0.3259, allocations: 483.2 kB / 484.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3259, allocations: 12.03 kB / 484.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.425e-05/0.326, allocations: 27.66 kB / 484.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.3262, allocations: 233 kB / 484.6 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.3263, allocations: 16.44 kB / 484.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/0.3263, allocations: 23.91 kB / 484.7 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.3267, allocations: 201.9 kB / 484.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.3267, allocations: 8 kB / 484.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.3267, allocations: 8 kB / 484.9 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.3267, allocations: 7.953 kB / 484.9 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.327, allocations: 133.6 kB / 485 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009257/0.3279, allocations: 0.7093 MB / 485.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.3282, allocations: 158.5 kB / 485.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.3282, allocations: 0 / 485.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.3282, allocations: 34.56 kB / 485.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.012e-06/0.3283, allocations: 0 / 485.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001517/0.3298, allocations: 0.8944 MB / 486.8 MB, free: 10.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.3298, allocations: 51.41 kB / 486.9 MB, free: 10.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.33, allocations: 158.4 kB / 487 MB, free: 10.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.33, allocations: 29.7 kB / 487 MB, free: 10.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.634e-05/0.3301, allocations: 144.3 kB / 487.2 MB, free: 10.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.314e-05/0.3302, allocations: 90.73 kB / 487.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.936e-06/0.3302, allocations: 4 kB / 487.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3303, allocations: 330.8 kB / 487.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.3304, allocations: 55.97 kB / 487.6 MB, free: 10.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.3305, allocations: 100.3 kB / 487.7 MB, free: 9.918 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001339/0.3307, allocations: 71.92 kB / 487.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3307, allocations: 0 / 487.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004119/0.3311, allocations: 259.5 kB / 488.1 MB, free: 9.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3311, allocations: 4.625 kB / 488.1 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3312, allocations: 4 kB / 488.1 MB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.3313, allocations: 28.84 kB / 488.1 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.3315, allocations: 55.91 kB / 488.2 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.3328, allocations: 1.382 MB / 489.5 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.333, allocations: 12.03 kB / 489.6 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.333, allocations: 7.938 kB / 489.6 MB, free: 7.957 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001551/0.3331, allocations: 154 kB / 489.7 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.3332, allocations: 15.81 kB / 489.7 MB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.268e-05/0.3333, allocations: 25.86 kB / 489.8 MB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3333, allocations: 0 / 489.8 MB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3333, allocations: 4 kB / 489.8 MB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3333, allocations: 3.984 kB / 489.8 MB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009534/0.3342, allocations: 0.6608 MB / 490.4 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.3343, allocations: 4 kB / 490.4 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.3345, allocations: 43.98 kB / 490.5 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/0.3346, allocations: 36.83 kB / 490.5 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.3346, allocations: 4 kB / 490.5 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.3357, allocations: 1.394 MB / 491.9 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3357, allocations: 3.984 kB / 491.9 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.3363, allocations: 436.3 kB / 492.3 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.271e-05/0.3364, allocations: 88.92 kB / 492.4 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.3364, allocations: 4 kB / 492.4 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.3365, allocations: 11.95 kB / 492.4 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.3366, allocations: 24.34 kB / 492.5 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.3366, allocations: 4 kB / 492.5 MB, free: 4.785 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.3367, allocations: 132.8 kB / 492.6 MB, free: 4.656 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3367, allocations: 0 / 492.6 MB, free: 4.656 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000329/0.3371, allocations: 56 kB / 492.6 MB, free: 4.602 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000149/0.3372, allocations: 108 kB / 492.8 MB, free: 4.488 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005507/0.3378, allocations: 298.2 kB / 493 MB, free: 4.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3378, allocations: 0 / 493 MB, free: 4.184 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002982/0.3381, allocations: 226.5 kB / 493.3 MB, free: 3.949 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.3384, allocations: 36.34 kB / 493.3 MB, free: 3.914 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.3396, allocations: 0.8091 MB / 494.1 MB, free: 3.074 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.3399, allocations: 0.7524 MB / 494.9 MB, free: 2.297 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.6e-05/0.34, allocations: 25.92 kB / 494.9 MB, free: 2.273 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.181e-05/0.34, allocations: 15.44 kB / 494.9 MB, free: 2.258 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.34, allocations: 4 kB / 494.9 MB, free: 2.254 MB / 362.7 MB Notification: Performance of Templates: time 0.00496/0.345, allocations: 2.158 MB / 497.1 MB, free: 116 kB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches