Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing") translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001237, allocations: 109.4 kB / 18.4 MB, free: 4.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001189, allocations: 189.1 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001185, allocations: 55.91 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08849/0.08969, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003638/0.09337, allocations: 2.42 MB / 378.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.09454, allocations: 0.6201 MB / 378.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.09469, allocations: 4 kB / 378.9 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.09488, allocations: 39.58 kB / 378.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.09507, allocations: 83.27 kB / 379 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.09525, allocations: 59.92 kB / 379 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.09556, allocations: 286.7 kB / 379.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002317/0.0958, allocations: 118.9 kB / 379.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.09594, allocations: 111.6 kB / 379.5 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001645/0.09611, allocations: 127.5 kB / 379.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.91e-05/0.09616, allocations: 28 kB / 379.7 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.599e-05/0.09621, allocations: 24 kB / 379.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.884e-05/0.09626, allocations: 51.78 kB / 379.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.09639, allocations: 131.3 kB / 379.9 MB, free: 480 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003196/0.09672, allocations: 302.9 kB / 380.2 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.09674, allocations: 8 kB / 380.2 MB, free: 168 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.09674, allocations: 0 / 380.2 MB, free: 168 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.09676, allocations: 0 / 380.2 MB, free: 168 kB / 318.1 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.1921/0.2888, allocations: 0.5271 MB / 380.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.2889, allocations: 8.5 kB / 380.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.532e-05/0.289, allocations: 26.44 kB / 380.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.2893, allocations: 247.4 kB / 381 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.2893, allocations: 17.34 kB / 381 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.2894, allocations: 26.72 kB / 381 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/0.2898, allocations: 231 kB / 381.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.2898, allocations: 6.844 kB / 381.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/0.2899, allocations: 12.91 kB / 381.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.2899, allocations: 5.875 kB / 381.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003848/0.2903, allocations: 174 kB / 381.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.2913, allocations: 0.752 MB / 382.2 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000446/0.2918, allocations: 218.3 kB / 382.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002093/0.292, allocations: 119.9 kB / 382.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.292, allocations: 6.156 kB / 382.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.382e-05/0.292, allocations: 32.55 kB / 382.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.813e-06/0.2921, allocations: 1.375 kB / 382.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001769/0.2938, allocations: 0.9607 MB / 383.5 MB, free: 9.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.2939, allocations: 54.23 kB / 383.6 MB, free: 9.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.294, allocations: 153.1 kB / 383.7 MB, free: 9.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.294, allocations: 31.75 kB / 383.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.2941, allocations: 149.3 kB / 383.9 MB, free: 8.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.641e-05/0.2942, allocations: 101.6 kB / 384 MB, free: 8.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.99e-05/0.2942, allocations: 53.92 kB / 384.1 MB, free: 8.777 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.851e-05/0.2943, allocations: 336.3 kB / 384.4 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.2945, allocations: 75.67 kB / 384.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.2947, allocations: 116.6 kB / 384.6 MB, free: 8.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.2951, allocations: 197.2 kB / 384.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2951, allocations: 0.75 kB / 384.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004498/0.2955, allocations: 262.8 kB / 385 MB, free: 8.344 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2955, allocations: 5.594 kB / 385 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.2956, allocations: 1.875 kB / 385 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.2956, allocations: 3.312 kB / 385 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.2959, allocations: 80.94 kB / 385.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2959, allocations: 7.438 kB / 385.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.296, allocations: 10.53 kB / 385.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.296, allocations: 10.66 kB / 385.2 MB, free: 8.34 MB / 318.1 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 9.124e-05/0.2961, allocations: 139.8 kB / 385.3 MB, free: 8.223 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.151e-05/0.2962, allocations: 16.94 kB / 385.3 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.002e-05/0.2962, allocations: 31.22 kB / 385.3 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2962, allocations: 6.406 kB / 385.3 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2963, allocations: 4.062 kB / 385.3 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2963, allocations: 1.594 kB / 385.4 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008439/0.2971, allocations: 0.654 MB / 386 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2971, allocations: 0 / 386 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.2974, allocations: 78.92 kB / 386.1 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.2975, allocations: 2.281 kB / 386.1 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.2975, allocations: 6.969 kB / 386.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.2975, allocations: 5.984 kB / 386.1 MB, free: 7.809 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2975, allocations: 1.469 kB / 386.1 MB, free: 7.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006074/0.2981, allocations: 454.2 kB / 386.5 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.237e-05/0.2981, allocations: 90.55 kB / 386.6 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.2982, allocations: 11.09 kB / 386.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.2983, allocations: 16.41 kB / 386.7 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.446e-05/0.2984, allocations: 13.81 kB / 386.7 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.2984, allocations: 10.31 kB / 386.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.194e-05/0.2985, allocations: 117.2 kB / 386.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2985, allocations: 5.438 kB / 386.8 MB, free: 7.332 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000294/0.2988, allocations: 58.34 kB / 386.9 MB, free: 7.324 MB / 318.1 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 9.098e-05/0.2989, allocations: 105 kB / 387 MB, free: 7.227 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000445/0.2993, allocations: 201.7 kB / 387.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2994, allocations: 0 / 387.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001958/0.2996, allocations: 110.6 kB / 387.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.3, allocations: 39.16 kB / 387.3 MB, free: 7.137 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.3011, allocations: 0.8336 MB / 388.1 MB, free: 6.574 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.3013, allocations: 0.7515 MB / 388.9 MB, free: 5.871 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.409e-05/0.3014, allocations: 21.97 kB / 388.9 MB, free: 5.863 MB / 318.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3014, allocations: 0 / 388.9 MB, free: 5.863 MB / 318.1 MB Notification: Performance of Templates: time 0.005036/0.3064, allocations: 2.796 MB / 391.7 MB, free: 5.559 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches