Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001414/0.001414, allocations: 183 kB / 18.66 MB, free: 4.41 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.455/1.455, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001129/0.001129, allocations: 47.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08682, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00446/0.09132, allocations: 3.028 MB / 378.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.09354, allocations: 0.9785 MB / 379.1 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002367/0.09379, allocations: 4 kB / 379.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003193/0.09416, allocations: 67.31 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002793/0.09445, allocations: 138.8 kB / 379.4 MB, free: 336 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005891/0.09505, allocations: 215.6 kB / 379.6 MB, free: 120 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1879/0.2829, allocations: 0.6288 MB / 380.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000323/0.2833, allocations: 134.8 kB / 380.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.2838, allocations: 277.9 kB / 380.6 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.2841, allocations: 302.1 kB / 380.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.123e-05/0.2842, allocations: 48.47 kB / 380.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.2844, allocations: 97.3 kB / 381 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.2846, allocations: 125 kB / 381.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.2848, allocations: 251 kB / 381.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008135/0.2856, allocations: 0.5937 MB / 382 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2856, allocations: 6.281 kB / 382 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2856, allocations: 0 / 382 MB, free: 10.1 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.2857, allocations: 3.969 kB / 382 MB, free: 10.1 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001663/0.2873, allocations: 0.7795 MB / 382.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.2874, allocations: 9.562 kB / 382.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.2875, allocations: 48.62 kB / 382.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.2879, allocations: 329.6 kB / 383.2 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.291e-05/0.288, allocations: 34.66 kB / 383.2 MB, free: 9.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.171e-05/0.2881, allocations: 45.41 kB / 383.2 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008782/0.2889, allocations: 480.8 kB / 383.7 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.289, allocations: 7.078 kB / 383.7 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.888e-05/0.289, allocations: 15.97 kB / 383.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.289, allocations: 8.938 kB / 383.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009156/0.29, allocations: 478.7 kB / 384.2 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.292, allocations: 1.119 MB / 385.3 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007708/0.2927, allocations: 388 kB / 385.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005049/0.2933, allocations: 265.8 kB / 386 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.284e-05/0.2933, allocations: 5.75 kB / 386 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.2933, allocations: 45.09 kB / 386 MB, free: 8.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.254e-06/0.2934, allocations: 0 / 386 MB, free: 8.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005602/0.299, allocations: 2.338 MB / 388.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/0.2991, allocations: 58.67 kB / 388.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004266/0.2995, allocations: 286.3 kB / 388.7 MB, free: 6.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.259e-05/0.2996, allocations: 40.73 kB / 388.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.2998, allocations: 186.1 kB / 388.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.2999, allocations: 192 kB / 389.1 MB, free: 6.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002242/0.3002, allocations: 106.2 kB / 389.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.3003, allocations: 354.7 kB / 389.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005222/0.3008, allocations: 241.7 kB / 389.8 MB, free: 5.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005845/0.3014, allocations: 293.8 kB / 390.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007641/0.3022, allocations: 415.1 kB / 390.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3022, allocations: 0 / 390.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001568/0.3038, allocations: 0.7863 MB / 391.3 MB, free: 5.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3038, allocations: 6.469 kB / 391.3 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3038, allocations: 1.359 kB / 391.3 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008977/0.3047, allocations: 0.4988 MB / 391.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.3051, allocations: 86.56 kB / 391.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.3062, allocations: 1.416 MB / 393.3 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.3067, allocations: 70.11 kB / 393.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/0.3068, allocations: 23.66 kB / 393.4 MB, free: 4.039 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001992/0.307, allocations: 172.8 kB / 393.5 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.196e-05/0.3071, allocations: 39.34 kB / 393.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001266/0.3072, allocations: 61.23 kB / 393.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3072, allocations: 5.781 kB / 393.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.3072, allocations: 0 / 393.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.3072, allocations: 2.625 kB / 393.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.3102, allocations: 1.455 MB / 395.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3102, allocations: 1.312 kB / 395.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003872/0.3106, allocations: 84.55 kB / 395.2 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000855/0.3115, allocations: 486.6 kB / 395.7 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.3116, allocations: 25.56 kB / 395.7 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.3126, allocations: 1.365 MB / 397 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3126, allocations: 7.406 kB / 397 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.3146, allocations: 1.085 MB / 398.1 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.3148, allocations: 169 kB / 398.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.629e-05/0.3149, allocations: 20.41 kB / 398.3 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004308/0.3153, allocations: 68.52 kB / 398.4 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/0.3155, allocations: 93.58 kB / 398.5 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.945e-05/0.3156, allocations: 25.64 kB / 398.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.3159, allocations: 205 kB / 398.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3159, allocations: 0 / 398.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006211/0.3165, allocations: 131.8 kB / 398.8 MB, free: 0.9688 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002581/0.3168, allocations: 144.3 kB / 399 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.3181, allocations: 0.5915 MB / 399.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3181, allocations: 0 / 399.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007113/0.3189, allocations: 350.5 kB / 399.9 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.3195, allocations: 77.45 kB / 400 MB, free: 0.543 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.3231, allocations: 1.432 MB / 401.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.3235, allocations: 0.8178 MB / 402.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.3237, allocations: 37.7 kB / 402.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.3238, allocations: 38.14 kB / 402.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3238, allocations: 0 / 402.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of Templates: time 0.01616/0.34, allocations: 10.04 MB / 412.3 MB, free: 9.125 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches