Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008667/0.0008667, allocations: 180.5 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 225.7 MB / 243.2 MB, free: 10.24 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007294/0.0007294, allocations: 89.27 kB / 294.4 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002388/0.0002387, allocations: 11.94 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2021, allocations: 50.41 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00213/0.2043, allocations: 2.591 MB / 407.2 MB, free: 28.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.2054, allocations: 0.9843 MB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.2056, allocations: 8 kB / 408.2 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.2057, allocations: 47.62 kB / 408.2 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.2059, allocations: 115.6 kB / 408.3 MB, free: 27.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.2063, allocations: 183.7 kB / 408.5 MB, free: 27.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.2066, allocations: 0.6083 MB / 409.1 MB, free: 26.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.2068, allocations: 107.9 kB / 409.2 MB, free: 26.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000209/0.207, allocations: 243 kB / 409.4 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.2072, allocations: 278.9 kB / 409.7 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.708e-05/0.2073, allocations: 24 kB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.2074, allocations: 67.95 kB / 409.8 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.872e-05/0.2075, allocations: 103.5 kB / 409.9 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.2077, allocations: 244.5 kB / 410.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.208, allocations: 0.5464 MB / 410.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.208, allocations: 0 / 410.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.208, allocations: 0 / 410.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.208, allocations: 3.938 kB / 410.7 MB, free: 25.18 MB / 298.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.0009756/0.209, allocations: 0.7175 MB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.2091, allocations: 12.02 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.879e-05/0.2091, allocations: 56.28 kB / 411.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.2094, allocations: 327.3 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.2094, allocations: 29.38 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.2095, allocations: 44.28 kB / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006756/0.2102, allocations: 482.5 kB / 412.3 MB, free: 23.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.2102, allocations: 4 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/0.2103, allocations: 16 kB / 412.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2103, allocations: 8 kB / 412.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007368/0.211, allocations: 491.7 kB / 412.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.2126, allocations: 1.157 MB / 414 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006355/0.2132, allocations: 389.3 kB / 414.4 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004044/0.2136, allocations: 278 kB / 414.7 MB, free: 21.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.2137, allocations: 8.438 kB / 414.7 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.2137, allocations: 35 kB / 414.7 MB, free: 21.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.453e-06/0.2137, allocations: 0 / 414.7 MB, free: 21.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004149/0.2179, allocations: 2.448 MB / 417.2 MB, free: 18.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.167e-05/0.2179, allocations: 59.97 kB / 417.2 MB, free: 18.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.2181, allocations: 283.3 kB / 417.5 MB, free: 18.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.2182, allocations: 45.69 kB / 417.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.289e-05/0.2183, allocations: 177.3 kB / 417.7 MB, free: 17.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.545e-05/0.2184, allocations: 201.2 kB / 417.9 MB, free: 17.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.2184, allocations: 16 kB / 417.9 MB, free: 17.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.358e-05/0.2185, allocations: 346.8 kB / 418.3 MB, free: 17.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.2188, allocations: 249.2 kB / 418.5 MB, free: 17.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.2192, allocations: 292.8 kB / 418.8 MB, free: 16.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.2199, allocations: 418.4 kB / 419.2 MB, free: 16.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2199, allocations: 0 / 419.2 MB, free: 16.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001118/0.221, allocations: 0.7561 MB / 419.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.221, allocations: 8 kB / 420 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.221, allocations: 0 / 420 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007172/0.2218, allocations: 0.4974 MB / 420.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.2221, allocations: 95.83 kB / 420.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008662/0.2229, allocations: 1.409 MB / 422 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/0.2234, allocations: 104 kB / 422.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.2234, allocations: 16 kB / 422.1 MB, free: 13.38 MB / 298.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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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.0001632/0.2236, allocations: 185.6 kB / 422.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.909e-05/0.2237, allocations: 35.53 kB / 422.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.941e-05/0.2238, allocations: 59.73 kB / 422.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.2238, allocations: 8 kB / 422.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2238, allocations: 0 / 422.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2238, allocations: 0 / 422.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.226, allocations: 1.489 MB / 423.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.226, allocations: 4 kB / 423.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003229/0.2264, allocations: 88.05 kB / 423.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005878/0.227, allocations: 489.3 kB / 424.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.227, allocations: 19.92 kB / 424.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000783/0.2278, allocations: 1.378 MB / 425.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2278, allocations: 4.031 kB / 425.8 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.2294, allocations: 1.096 MB / 426.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.2296, allocations: 168.5 kB / 427.1 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.386e-05/0.2297, allocations: 23.94 kB / 427.1 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003773/0.2301, allocations: 83.92 kB / 427.2 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.2302, allocations: 92.28 kB / 427.3 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.753e-05/0.2303, allocations: 23.97 kB / 427.3 MB, free: 7.953 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001355/0.2304, allocations: 198 kB / 427.5 MB, free: 7.758 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2304, allocations: 0 / 427.5 MB, free: 7.758 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000406/0.2308, allocations: 136 kB / 427.6 MB, free: 7.625 MB / 298.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.0002089/0.2311, allocations: 144 kB / 427.8 MB, free: 7.473 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.2321, allocations: 0.6006 MB / 428.4 MB, free: 6.875 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2321, allocations: 4 kB / 428.4 MB, free: 6.871 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005772/0.2327, allocations: 342.3 kB / 428.7 MB, free: 6.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005668/0.2333, allocations: 84.88 kB / 428.8 MB, free: 6.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003156/0.2364, allocations: 1.822 MB / 430.6 MB, free: 4.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.2367, allocations: 0.8127 MB / 431.4 MB, free: 3.754 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001573/0.2368, allocations: 47.25 kB / 431.5 MB, free: 3.707 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.413e-05/0.2369, allocations: 27.44 kB / 431.5 MB, free: 3.68 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2369, allocations: 0 / 431.5 MB, free: 3.68 MB / 298.7 MB Notification: Performance of Templates: time 0.01229/0.2492, allocations: 9.252 MB / 440.7 MB, free: 10.46 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches