Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.0009914/0.0009914, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009325/0.0009325, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.9565/0.9565, allocations: 177.1 MB / 205 MB, free: 5.633 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.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.781e-05, allocations: 2.312 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002569/0.002587, allocations: 2.469 MB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000813/0.0034, allocations: 0.6037 MB / 276 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.003502, allocations: 11.94 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.003633, allocations: 39.59 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.003769, allocations: 83.25 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001395/0.003908, allocations: 59.91 kB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002333/0.004141, allocations: 306.4 kB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.004293, allocations: 75.3 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.004447, allocations: 167.7 kB / 276.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.004552, allocations: 99.69 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.004584, allocations: 24 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.974e-05/0.004614, allocations: 24 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.585e-05/0.00465, allocations: 51.83 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.024e-05/0.00472, allocations: 103.7 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.004926, allocations: 191.2 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.004928, allocations: 0 / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.004929, allocations: 0 / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.004933, allocations: 0 / 277.2 MB, free: 13.25 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0005229/0.005456, allocations: 0.5665 MB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.005491, allocations: 8.031 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.708e-05/0.005558, allocations: 52.75 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.005753, allocations: 188.7 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.005768, allocations: 17.03 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.738e-05/0.005806, allocations: 28.33 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.006052, allocations: 183.4 kB / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.006068, allocations: 11.92 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.006085, allocations: 8 kB / 278.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.006094, allocations: 11.94 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.00624, allocations: 99.86 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006982/0.006939, allocations: 0.6283 MB / 279 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.007219, allocations: 159 kB / 279.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.378e-05/0.007303, allocations: 70.47 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.007315, allocations: 4 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.007335, allocations: 41.39 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 1.292e-06/0.007336, allocations: 0 / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008185/0.008155, allocations: 0.6604 MB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.008184, allocations: 55.41 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.45e-05/0.008278, allocations: 201.1 kB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.008293, allocations: 29.7 kB / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.074e-05/0.008364, allocations: 199.4 kB / 280.4 MB, free: 9.828 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.191e-05/0.008416, allocations: 107.1 kB / 280.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.406e-05/0.00847, allocations: 47.38 kB / 280.6 MB, free: 9.668 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003138/0.008784, allocations: 0.5001 MB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.843e-05/0.008842, allocations: 39.97 kB / 281.1 MB, free: 9.117 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.008951, allocations: 95.17 kB / 281.2 MB, free: 9.008 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.009122, allocations: 142.7 kB / 281.4 MB, free: 8.852 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.009123, allocations: 3.938 kB / 281.4 MB, free: 8.848 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002128/0.009336, allocations: 201.4 kB / 281.6 MB, free: 8.645 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.00935, allocations: 4 kB / 281.6 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.009355, allocations: 4 kB / 281.6 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.009368, allocations: 4 kB / 281.6 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.009534, allocations: 80 kB / 281.7 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.009541, allocations: 3.984 kB / 281.7 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.653e-05/0.009597, allocations: 8 kB / 281.7 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.009609, allocations: 12 kB / 281.7 MB, free: 8.531 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (35): * Single equations (assignments): 35 * 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 8.489e-05/0.009694, allocations: 168.5 kB / 281.8 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.009726, allocations: 35.8 kB / 281.9 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.67e-05/0.009762, allocations: 25.95 kB / 281.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.009765, allocations: 4 kB / 281.9 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.009769, allocations: 0 / 281.9 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.009772, allocations: 4 kB / 281.9 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004866/0.01026, allocations: 0.5485 MB / 282.5 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.01026, allocations: 0 / 282.5 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001744/0.01043, allocations: 67.91 kB / 282.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.01044, allocations: 4 kB / 282.5 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.01045, allocations: 8 kB / 282.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.01045, allocations: 3.984 kB / 282.5 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01045, allocations: 0 / 282.5 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003225/0.01078, allocations: 410.1 kB / 282.9 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.869e-05/0.0108, allocations: 11.91 kB / 283 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.01081, allocations: 8 kB / 283 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.534e-05/0.01088, allocations: 8 kB / 283 MB, free: 7.148 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.382e-05/0.01092, allocations: 27.89 kB / 283 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.01093, allocations: 7.984 kB / 283 MB, free: 7.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.57e-05/0.01099, allocations: 150.2 kB / 283.1 MB, free: 6.969 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01099, allocations: 0 / 283.1 MB, free: 6.969 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001975/0.01118, allocations: 63.94 kB / 283.2 MB, free: 6.906 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.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 (28): * Single equations (assignments): 28 * 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 7.832e-05/0.01126, allocations: 111.2 kB / 283.3 MB, free: 6.789 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000196/0.01146, allocations: 132.4 kB / 283.4 MB, free: 6.656 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01146, allocations: 0 / 283.4 MB, free: 6.656 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.09e-05/0.01154, allocations: 83.52 kB / 283.5 MB, free: 6.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.01181, allocations: 39.25 kB / 283.6 MB, free: 6.535 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009342/0.01274, allocations: 0.6891 MB / 284.3 MB, free: 5.812 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.233e-05/0.01279, allocations: 84.64 kB / 284.3 MB, free: 5.707 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.386e-05/0.01285, allocations: 17.95 kB / 284.4 MB, free: 5.688 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.455e-05/0.01289, allocations: 20.5 kB / 284.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01289, allocations: 0 / 284.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of Templates: time 0.004467/0.01736, allocations: 2.247 MB / 286.6 MB, free: 3.457 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.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.601303534116596]