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.001597/0.001597, allocations: 111.2 kB / 18.4 MB, free: 4.688 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.001435/0.001435, allocations: 189.2 kB / 19.33 MB, free: 3.77 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 / 225.2 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.002207/0.002207, allocations: 43.94 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.139, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00736/0.1464, allocations: 3.036 MB / 378.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003183/0.1497, allocations: 0.9785 MB / 379.8 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003323/0.1501, allocations: 7.938 kB / 379.8 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003782/0.1505, allocations: 67.31 kB / 379.9 MB, free: 492 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004945/0.151, allocations: 130.9 kB / 380 MB, free: 360 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009579/0.152, allocations: 219.6 kB / 380.2 MB, free: 140 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2741/0.4261, allocations: 0.6296 MB / 380.9 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004711/0.4266, allocations: 136.9 kB / 381 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007396/0.4274, allocations: 277.2 kB / 381.3 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005485/0.428, allocations: 304 kB / 381.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.4281, allocations: 48.12 kB / 381.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003234/0.4284, allocations: 98.66 kB / 381.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.4286, allocations: 121.4 kB / 381.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003271/0.429, allocations: 255.9 kB / 382.1 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.4302, allocations: 0.5898 MB / 382.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4302, allocations: 5.75 kB / 382.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4302, allocations: 0 / 382.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.4302, allocations: 0.625 kB / 382.7 MB, free: 9.555 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.002342/0.4326, allocations: 0.7823 MB / 383.5 MB, free: 9.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.4327, allocations: 9.906 kB / 383.5 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001989/0.4329, allocations: 49.67 kB / 383.5 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000667/0.4335, allocations: 330.3 kB / 383.8 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.4336, allocations: 31.38 kB / 383.9 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.4338, allocations: 44.09 kB / 383.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.4353, allocations: 472.8 kB / 384.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.612e-05/0.4353, allocations: 12.33 kB / 384.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.466e-05/0.4354, allocations: 16.22 kB / 384.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.4354, allocations: 9.094 kB / 384.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.4371, allocations: 485.5 kB / 384.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003534/0.4406, allocations: 1.114 MB / 386 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.4419, allocations: 399.2 kB / 386.4 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009186/0.4429, allocations: 264.2 kB / 386.6 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.522e-05/0.443, allocations: 5.562 kB / 386.7 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.443, allocations: 42.84 kB / 386.7 MB, free: 8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 4.248e-06/0.443, allocations: 0 / 386.7 MB, free: 8 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00884/0.4519, allocations: 2.334 MB / 389 MB, free: 6.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.4519, allocations: 58.64 kB / 389.1 MB, free: 6.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006059/0.4526, allocations: 281.4 kB / 389.4 MB, free: 6.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.986e-05/0.4527, allocations: 45.58 kB / 389.4 MB, free: 6.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.4529, allocations: 185.7 kB / 389.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.4532, allocations: 187.8 kB / 389.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003399/0.4535, allocations: 113.5 kB / 389.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4537, allocations: 352.2 kB / 390.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008682/0.4545, allocations: 238.6 kB / 390.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009598/0.4555, allocations: 290.6 kB / 390.7 MB, free: 5.621 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.457, allocations: 420.5 kB / 391.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.457, allocations: 0 / 391.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003029/0.46, allocations: 0.7862 MB / 391.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.4601, allocations: 4.25 kB / 391.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.4601, allocations: 1.344 kB / 391.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00159/0.4617, allocations: 0.4914 MB / 392.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007052/0.4624, allocations: 94.12 kB / 392.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001998/0.4645, allocations: 1.412 MB / 393.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.4655, allocations: 70.45 kB / 394 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.4657, allocations: 24.28 kB / 394 MB, free: 3.809 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.0004612/0.4661, allocations: 176.1 kB / 394.2 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.4664, allocations: 44.69 kB / 394.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002082/0.4666, allocations: 57.98 kB / 394.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.4666, allocations: 6.125 kB / 394.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.4667, allocations: 96 / 394.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.4667, allocations: 8.172 kB / 394.3 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005406/0.4721, allocations: 1.454 MB / 395.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.4722, allocations: 1.938 kB / 395.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007419/0.4729, allocations: 90.91 kB / 395.9 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/0.4745, allocations: 481.1 kB / 396.3 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.349e-05/0.4746, allocations: 20.27 kB / 396.4 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00174/0.4763, allocations: 1.371 MB / 397.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.4764, allocations: 3.5 kB / 397.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003522/0.4799, allocations: 1.094 MB / 398.8 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004465/0.4804, allocations: 164.8 kB / 399 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002104/0.4806, allocations: 19.81 kB / 399 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008789/0.4815, allocations: 62.67 kB / 399.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003959/0.4819, allocations: 96.3 kB / 399.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-05/0.482, allocations: 22.61 kB / 399.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003861/0.4824, allocations: 203.5 kB / 399.4 MB, free: 0.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4824, allocations: 0 / 399.4 MB, free: 0.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001062/0.4835, allocations: 130.7 kB / 399.5 MB, free: 0.7344 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.0004169/0.484, allocations: 147.1 kB / 399.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002464/0.4864, allocations: 0.5901 MB / 400.2 MB, free: 452 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.4865, allocations: 1.219 kB / 400.2 MB, free: 452 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.4878, allocations: 346.7 kB / 400.6 MB, free: 348 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.4891, allocations: 73.61 kB / 400.6 MB, free: 320 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00718/0.4963, allocations: 1.472 MB / 402.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000781/0.4971, allocations: 0.8146 MB / 402.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002994/0.4974, allocations: 39.84 kB / 403 MB, free: 14.81 MB / 334.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4975, allocations: 1.281 kB / 403 MB, free: 14.81 MB / 334.1 MB Notification: Performance of Templates: time 0.02366/0.5211, allocations: 8.584 MB / 411.6 MB, free: 10.45 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/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