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.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.0008012/0.0008012, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.0009911/0.0009911, allocations: 163.9 kB / 25.7 MB, free: 8.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.862/0.862, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] 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.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,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=3000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 251.6 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.141e-05/1.248e-05, allocations: 2.312 kB / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00287/0.002883, allocations: 3.06 MB / 254.6 MB, free: 4.152 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.004363, allocations: 0.9938 MB / 255.6 MB, free: 3.148 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.004497, allocations: 11.94 kB / 255.6 MB, free: 3.137 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.004668, allocations: 63.38 kB / 255.7 MB, free: 3.074 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.00485, allocations: 146.7 kB / 255.8 MB, free: 2.93 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.005233, allocations: 223.5 kB / 256 MB, free: 2.711 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.005657, allocations: 0.6469 MB / 256.7 MB, free: 2.059 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.005804, allocations: 101.3 kB / 256.8 MB, free: 1.953 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003611/0.006165, allocations: 379.3 kB / 257.2 MB, free: 1.582 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.006415, allocations: 255.3 kB / 257.4 MB, free: 1.332 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.158e-05/0.006466, allocations: 48 kB / 257.5 MB, free: 1.285 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.006622, allocations: 99.94 kB / 257.6 MB, free: 1.188 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.721e-05/0.006709, allocations: 135.5 kB / 257.7 MB, free: 1.055 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.006825, allocations: 179.5 kB / 257.9 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003551/0.00718, allocations: 478.4 kB / 258.3 MB, free: 420 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.007182, allocations: 0 / 258.3 MB, free: 420 kB / 234.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.007183, allocations: 0 / 258.3 MB, free: 420 kB / 234.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.007188, allocations: 0 / 258.3 MB, free: 420 kB / 234.7 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.0006959/0.007884, allocations: 0.6634 MB / 259 MB, free: 15.72 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.701e-05/0.007911, allocations: 15.98 kB / 259 MB, free: 15.71 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.762e-05/0.007988, allocations: 60.89 kB / 259.1 MB, free: 15.65 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.008221, allocations: 244.4 kB / 259.3 MB, free: 15.38 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.008244, allocations: 33.38 kB / 259.3 MB, free: 15.35 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.036e-05/0.008294, allocations: 36.38 kB / 259.4 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003526/0.008647, allocations: 351.5 kB / 259.7 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.008662, allocations: 8.141 kB / 259.7 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.008686, allocations: 12.38 kB / 259.7 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.008694, allocations: 15.94 kB / 259.8 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.008939, allocations: 198.8 kB / 260 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008957/0.009834, allocations: 0.6629 MB / 260.6 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.01013, allocations: 228.6 kB / 260.8 MB, free: 13.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.01028, allocations: 130.3 kB / 261 MB, free: 13.7 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.01031, allocations: 16.44 kB / 261 MB, free: 13.68 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.01033, allocations: 35.06 kB / 261 MB, free: 13.64 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.193e-06/0.01033, allocations: 0 / 261 MB, free: 13.64 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.001809/0.01214, allocations: 1.348 MB / 262.4 MB, free: 12.23 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.01216, allocations: 59.91 kB / 262.4 MB, free: 12.16 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.0123, allocations: 240.9 kB / 262.7 MB, free: 11.92 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.01233, allocations: 45.69 kB / 262.7 MB, free: 11.87 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.607e-05/0.0124, allocations: 174 kB / 262.9 MB, free: 11.69 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.0125, allocations: 206.3 kB / 263.1 MB, free: 11.49 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.01261, allocations: 106.2 kB / 263.2 MB, free: 11.38 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.528e-05/0.01269, allocations: 354.7 kB / 263.5 MB, free: 11.02 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.01282, allocations: 101.2 kB / 263.6 MB, free: 10.92 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.01295, allocations: 144.8 kB / 263.8 MB, free: 10.77 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.01317, allocations: 238 kB / 264 MB, free: 10.54 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.01317, allocations: 4 kB / 264 MB, free: 10.53 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0005153/0.01369, allocations: 438.6 kB / 264.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/0.0137, allocations: 4 kB / 264.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.0137, allocations: 4.031 kB / 264.4 MB, free: 10.08 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004368/0.01414, allocations: 401.3 kB / 264.8 MB, free: 9.684 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.01432, allocations: 99.83 kB / 264.9 MB, free: 9.586 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005844/0.01491, allocations: 1.198 MB / 266.1 MB, free: 8.336 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.01507, allocations: 56 kB / 266.2 MB, free: 8.281 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.0151, allocations: 15.98 kB / 266.2 MB, free: 8.266 MB / 250.7 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.0001074/0.01521, allocations: 140.6 kB / 266.3 MB, free: 8.117 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.738e-05/0.01526, allocations: 47.95 kB / 266.4 MB, free: 8.07 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.056e-05/0.01532, allocations: 51.61 kB / 266.4 MB, free: 8.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.01532, allocations: 11.94 kB / 266.4 MB, free: 8.008 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.01532, allocations: 0 / 266.4 MB, free: 8.008 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.01533, allocations: 0 / 266.4 MB, free: 8.008 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.01635, allocations: 0.8223 MB / 267.3 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.01635, allocations: 0 / 267.3 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.01655, allocations: 87.89 kB / 267.3 MB, free: 7.059 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003901/0.01694, allocations: 401.5 kB / 267.7 MB, free: 6.66 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/0.01697, allocations: 19.97 kB / 267.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005513/0.01752, allocations: 1.195 MB / 269 MB, free: 5.395 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.01752, allocations: 8.047 kB / 269 MB, free: 5.387 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006575/0.01818, allocations: 0.6434 MB / 269.6 MB, free: 4.703 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.379e-05/0.01827, allocations: 55.73 kB / 269.7 MB, free: 4.648 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.645e-05/0.01832, allocations: 23.98 kB / 269.7 MB, free: 4.625 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.01847, allocations: 43.95 kB / 269.7 MB, free: 4.582 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.01859, allocations: 100.2 kB / 269.8 MB, free: 4.484 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.01862, allocations: 15.98 kB / 269.8 MB, free: 4.469 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.34e-05/0.01868, allocations: 86.75 kB / 269.9 MB, free: 4.379 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01868, allocations: 0 / 269.9 MB, free: 4.379 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002486/0.01893, allocations: 132 kB / 270.1 MB, free: 4.25 MB / 250.7 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.0001393/0.01907, allocations: 132.2 kB / 270.2 MB, free: 4.113 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004217/0.01949, allocations: 335.5 kB / 270.5 MB, free: 3.789 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.01949, allocations: 4 kB / 270.5 MB, free: 3.785 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002255/0.01972, allocations: 217.7 kB / 270.7 MB, free: 3.566 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.01999, allocations: 96.5 kB / 270.8 MB, free: 3.473 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.02152, allocations: 1.08 MB / 271.9 MB, free: 2.348 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.057e-05/0.02158, allocations: 118.4 kB / 272 MB, free: 2.215 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.052e-05/0.02167, allocations: 35.28 kB / 272.1 MB, free: 2.176 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.02182, allocations: 119.3 kB / 272.2 MB, free: 2.059 MB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02182, allocations: 0 / 272.2 MB, free: 2.059 MB / 250.7 MB Notification: Performance of Templates: time 0.009553/0.03137, allocations: 9.271 MB / 281.4 MB, free: 8.82 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] 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","",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.767781284172088]