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.001062/0.001063, allocations: 114.5 kB / 17.73 MB, free: 5.32 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.001006/0.001006, allocations: 179 kB / 18.66 MB, free: 4.398 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.385/1.385, 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.001201/0.001201, allocations: 51.94 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08584/0.08706, 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.004386/0.09148, allocations: 3.024 MB / 378.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.09353, allocations: 0.9824 MB / 379.1 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000367/0.09393, allocations: 11.94 kB / 379.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003292/0.09433, allocations: 71.31 kB / 379.2 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004446/0.09478, allocations: 130.9 kB / 379.4 MB, free: 332 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007112/0.09551, allocations: 219.6 kB / 379.6 MB, free: 112 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1939/0.2895, allocations: 0.6262 MB / 380.2 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002874/0.2898, allocations: 137.4 kB / 380.3 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004122/0.2902, allocations: 281.8 kB / 380.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003596/0.2906, allocations: 298.4 kB / 380.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.977e-05/0.2907, allocations: 48.44 kB / 380.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002021/0.2909, allocations: 105.2 kB / 381 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.291, allocations: 116.5 kB / 381.2 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002193/0.2912, allocations: 251.1 kB / 381.4 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00074/0.292, allocations: 0.5997 MB / 382 MB, free: 9.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.292, allocations: 0 / 382 MB, free: 9.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.292, allocations: 0.5312 kB / 382 MB, free: 9.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.292, allocations: 2.562 kB / 382 MB, free: 9.566 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.001623/0.2937, allocations: 0.7803 MB / 382.8 MB, free: 9.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.2937, allocations: 10.97 kB / 382.8 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.2938, allocations: 48.47 kB / 382.8 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004511/0.2943, allocations: 330.8 kB / 383.2 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.2943, allocations: 29.06 kB / 383.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.954e-05/0.2944, allocations: 45.05 kB / 383.2 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009436/0.2954, allocations: 472.1 kB / 383.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.2954, allocations: 10.83 kB / 383.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.392e-05/0.2955, allocations: 15.41 kB / 383.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.2955, allocations: 14.31 kB / 383.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009726/0.2965, allocations: 482.5 kB / 384.2 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.2985, allocations: 1.115 MB / 385.3 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008102/0.2993, allocations: 393.7 kB / 385.7 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004948/0.2999, allocations: 265.1 kB / 386 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.492e-05/0.2999, allocations: 10.16 kB / 386 MB, free: 8.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.2999, allocations: 37.22 kB / 386 MB, free: 8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.563e-06/0.2999, allocations: 0 / 386 MB, free: 8 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004899/0.3048, allocations: 2.337 MB / 388.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.3049, allocations: 57.25 kB / 388.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.3052, allocations: 286.9 kB / 388.7 MB, free: 6.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.008e-05/0.3053, allocations: 40.25 kB / 388.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.3054, allocations: 189.5 kB / 388.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.3055, allocations: 190.8 kB / 389.1 MB, free: 6.195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.3057, allocations: 106 kB / 389.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.954e-05/0.3058, allocations: 356.9 kB / 389.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004764/0.3063, allocations: 242.4 kB / 389.8 MB, free: 5.727 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.3068, allocations: 289.4 kB / 390.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007469/0.3075, allocations: 414.2 kB / 390.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3076, allocations: 2.719 kB / 390.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001511/0.3091, allocations: 0.7845 MB / 391.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.3091, allocations: 5.422 kB / 391.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.3091, allocations: 0.8125 kB / 391.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009807/0.3101, allocations: 0.5 MB / 391.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003584/0.3105, allocations: 91.02 kB / 391.9 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.3116, allocations: 1.412 MB / 393.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005187/0.3121, allocations: 75.42 kB / 393.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/0.3122, allocations: 19.17 kB / 393.4 MB, free: 3.797 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.000222/0.3124, allocations: 176.8 kB / 393.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.25e-05/0.3125, allocations: 48.06 kB / 393.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001318/0.3127, allocations: 55.59 kB / 393.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.3127, allocations: 5.625 kB / 393.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.3127, allocations: 0 / 393.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.3127, allocations: 3.047 kB / 393.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.3155, allocations: 1.452 MB / 395.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3156, allocations: 2.688 kB / 395.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.3159, allocations: 87.34 kB / 395.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007546/0.3167, allocations: 481 kB / 395.7 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.235e-05/0.3168, allocations: 27.42 kB / 395.7 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009987/0.3178, allocations: 1.37 MB / 397.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3178, allocations: 6.219 kB / 397.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.3197, allocations: 1.087 MB / 398.1 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.3199, allocations: 164.5 kB / 398.3 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.97e-05/0.32, allocations: 21.48 kB / 398.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.3204, allocations: 68.42 kB / 398.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.3207, allocations: 91.67 kB / 398.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-05/0.3207, allocations: 27.28 kB / 398.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002126/0.3209, allocations: 204.8 kB / 398.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3209, allocations: 0 / 398.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005059/0.3215, allocations: 131.9 kB / 398.8 MB, free: 0.7305 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.0002173/0.3217, allocations: 142.8 kB / 399 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.3229, allocations: 0.5907 MB / 399.6 MB, free: 452 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3229, allocations: 64 / 399.6 MB, free: 452 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.3236, allocations: 350.9 kB / 399.9 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005693/0.3242, allocations: 71.08 kB / 400 MB, free: 316 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.3278, allocations: 1.439 MB / 401.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.3283, allocations: 0.8177 MB / 402.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001797/0.3285, allocations: 40.22 kB / 402.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.3286, allocations: 38.59 kB / 402.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3286, allocations: 0 / 402.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of Templates: time 0.01608/0.3447, allocations: 10.03 MB / 412.3 MB, free: 8.973 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