Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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) 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_4.0.0_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_4.0.0_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.0007854/0.0007854, allocations: 93.41 kB / 17.31 MB, free: 6.535 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.0008457/0.0008457, allocations: 175.5 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.128/1.128, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002056/0.0002056, allocations: 11.94 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07067/0.07089, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002567/0.07349, allocations: 2.687 MB / 355.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.07489, allocations: 0.9349 MB / 356.1 MB, free: 52 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001729/0.07507, allocations: 7.938 kB / 356.1 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.07527, allocations: 47.73 kB / 356.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002308/0.07551, allocations: 111.1 kB / 356.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004053/0.07592, allocations: 187.7 kB / 356.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004925/0.07642, allocations: 0.6004 MB / 357.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.07661, allocations: 111.9 kB / 357.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.07691, allocations: 251 kB / 357.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000299/0.07722, allocations: 266.9 kB / 357.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.81e-05/0.07729, allocations: 24 kB / 357.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.07744, allocations: 75.89 kB / 357.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.07755, allocations: 103.5 kB / 357.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.07775, allocations: 244.5 kB / 358.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003371/0.07809, allocations: 419.1 kB / 358.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.07811, allocations: 4 kB / 358.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.07811, allocations: 3.938 kB / 358.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.07813, allocations: 0 / 358.5 MB, free: 13.61 MB / 302.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.001155/0.07929, allocations: 0.7214 MB / 359.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.07932, allocations: 8.031 kB / 359.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.044e-05/0.07942, allocations: 48.38 kB / 359.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.07974, allocations: 335.1 kB / 359.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.955e-05/0.07978, allocations: 29.38 kB / 359.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.632e-05/0.07986, allocations: 44.38 kB / 359.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007687/0.08064, allocations: 482.6 kB / 360.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.08067, allocations: 7.891 kB / 360.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.53e-05/0.08072, allocations: 19.98 kB / 360.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.08073, allocations: 8 kB / 360.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008262/0.08156, allocations: 495.7 kB / 360.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.08332, allocations: 1.145 MB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006989/0.08403, allocations: 408.1 kB / 362.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004602/0.0845, allocations: 274.1 kB / 362.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.08455, allocations: 12.42 kB / 362.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.08457, allocations: 35 kB / 362.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.553e-06/0.08458, allocations: 0 / 362.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004608/0.08919, allocations: 2.452 MB / 365 MB, free: 6.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.08924, allocations: 63.97 kB / 365.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.08948, allocations: 283.3 kB / 365.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.816e-05/0.08954, allocations: 41.7 kB / 365.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.8e-05/0.08964, allocations: 185.3 kB / 365.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.08978, allocations: 201.3 kB / 365.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.225e-05/0.08986, allocations: 53.69 kB / 365.8 MB, free: 5.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.08996, allocations: 346.8 kB / 366.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004193/0.09039, allocations: 245.2 kB / 366.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/0.09085, allocations: 296.8 kB / 366.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007015/0.09156, allocations: 430.3 kB / 367.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.09157, allocations: 3.938 kB / 367.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00146/0.09303, allocations: 0.799 MB / 367.9 MB, free: 3.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.09306, allocations: 4 kB / 367.9 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.09307, allocations: 4 kB / 367.9 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000775/0.09385, allocations: 0.4935 MB / 368.4 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.09416, allocations: 91.89 kB / 368.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.09525, allocations: 1.409 MB / 369.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004711/0.09573, allocations: 100.1 kB / 370 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.09578, allocations: 19.98 kB / 370 MB, free: 1.695 MB / 302.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.0001843/0.09597, allocations: 185.5 kB / 370.2 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.915e-05/0.09604, allocations: 39.53 kB / 370.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.09617, allocations: 59.73 kB / 370.3 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.09618, allocations: 4 kB / 370.3 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.09619, allocations: 0 / 370.3 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.0962, allocations: 3.984 kB / 370.3 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1251/0.2213, allocations: 1.48 MB / 371.8 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.2213, allocations: 0.9688 kB / 371.8 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003963/0.2217, allocations: 86.95 kB / 371.9 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008018/0.2225, allocations: 480.1 kB / 372.3 MB, free: 25.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.497e-05/0.2226, allocations: 24.38 kB / 372.4 MB, free: 25.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009569/0.2236, allocations: 1.373 MB / 373.7 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2236, allocations: 1.781 kB / 373.7 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.2255, allocations: 1.114 MB / 374.9 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001857/0.2257, allocations: 168.7 kB / 375 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.071e-05/0.2257, allocations: 19.45 kB / 375 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.2262, allocations: 78.58 kB / 375.1 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.2264, allocations: 97.48 kB / 375.2 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.915e-05/0.2264, allocations: 23.05 kB / 375.2 MB, free: 24.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001681/0.2266, allocations: 206.1 kB / 375.4 MB, free: 24.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2266, allocations: 0 / 375.4 MB, free: 24.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004299/0.227, allocations: 132.6 kB / 375.6 MB, free: 24.11 MB / 302.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.0001832/0.2272, allocations: 150.5 kB / 375.7 MB, free: 24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.2283, allocations: 0.6016 MB / 376.3 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2283, allocations: 0 / 376.3 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005963/0.2289, allocations: 344 kB / 376.6 MB, free: 23.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.2295, allocations: 70.06 kB / 376.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/0.2328, allocations: 1.869 MB / 378.6 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/0.233, allocations: 0.8226 MB / 379.4 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.985e-05/0.2331, allocations: 36.7 kB / 379.4 MB, free: 21.98 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2331, allocations: 1.281 kB / 379.4 MB, free: 21.98 MB / 302.1 MB Notification: Performance of Templates: time 0.01007/0.2432, allocations: 8.469 MB / 387.9 MB, free: 19.05 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches