Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009264/0.0009264, allocations: 177.2 kB / 17.36 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.6 MB / 223.7 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000813/0.000813, allocations: 86.38 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002262/0.0002262, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2386, allocations: 47.59 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002341/0.241, allocations: 2.585 MB / 379.2 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.2422, allocations: 1.035 MB / 380.2 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.2423, allocations: 5.344 kB / 380.2 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.2425, allocations: 43.94 kB / 380.3 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.2427, allocations: 121.7 kB / 380.4 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003648/0.2431, allocations: 185.8 kB / 380.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004239/0.2435, allocations: 0.5992 MB / 381.2 MB, free: 42.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.2437, allocations: 111.9 kB / 381.3 MB, free: 42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002597/0.244, allocations: 249.1 kB / 381.5 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002452/0.2442, allocations: 275.1 kB / 381.8 MB, free: 41.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-05/0.2443, allocations: 24.66 kB / 381.8 MB, free: 41.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.2445, allocations: 70.86 kB / 381.9 MB, free: 41.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.383e-05/0.2446, allocations: 95.11 kB / 382 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.2447, allocations: 253.4 kB / 382.2 MB, free: 41.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.2451, allocations: 0.546 MB / 382.8 MB, free: 41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2452, allocations: 0 / 382.8 MB, free: 41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2452, allocations: 0 / 382.8 MB, free: 41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.2452, allocations: 1.094 kB / 382.8 MB, free: 41 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.001003/0.2462, allocations: 0.7207 MB / 383.5 MB, free: 40.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.2462, allocations: 9.125 kB / 383.5 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.649e-05/0.2463, allocations: 49.03 kB / 383.6 MB, free: 40.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.2466, allocations: 332.3 kB / 383.9 MB, free: 40.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.2466, allocations: 29.69 kB / 383.9 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.2467, allocations: 42.12 kB / 383.9 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007606/0.2475, allocations: 483.1 kB / 384.4 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.2475, allocations: 4.969 kB / 384.4 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/0.2475, allocations: 15.16 kB / 384.4 MB, free: 39.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.2476, allocations: 9.844 kB / 384.4 MB, free: 39.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008542/0.2484, allocations: 488.9 kB / 384.9 MB, free: 39.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.2501, allocations: 1.155 MB / 386.1 MB, free: 38.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000681/0.2507, allocations: 398.4 kB / 386.5 MB, free: 38.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004153/0.2512, allocations: 282 kB / 386.7 MB, free: 38.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.2512, allocations: 4.438 kB / 386.7 MB, free: 38.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.2512, allocations: 39 kB / 386.8 MB, free: 38.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.623e-06/0.2512, allocations: 0 / 386.8 MB, free: 38.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.003994/0.2552, allocations: 2.44 MB / 389.2 MB, free: 35.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.2553, allocations: 55.97 kB / 389.3 MB, free: 35.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.2555, allocations: 291.2 kB / 389.6 MB, free: 35.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.2556, allocations: 45.64 kB / 389.6 MB, free: 35.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.879e-05/0.2557, allocations: 185.3 kB / 389.8 MB, free: 34.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.502e-05/0.2558, allocations: 193.3 kB / 390 MB, free: 34.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.921e-05/0.2558, allocations: 12 kB / 390 MB, free: 34.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.253e-05/0.2558, allocations: 350.8 kB / 390.3 MB, free: 34.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004072/0.2563, allocations: 245.2 kB / 390.6 MB, free: 34.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003969/0.2567, allocations: 296.8 kB / 390.9 MB, free: 33.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006018/0.2573, allocations: 418.4 kB / 391.3 MB, free: 33.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.2573, allocations: 0 / 391.3 MB, free: 33.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001116/0.2584, allocations: 0.7562 MB / 392 MB, free: 32.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.2584, allocations: 4 kB / 392 MB, free: 32.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2584, allocations: 3.938 kB / 392 MB, free: 32.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007063/0.2592, allocations: 0.4973 MB / 392.5 MB, free: 32.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.2595, allocations: 95.83 kB / 392.6 MB, free: 32.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008715/0.2604, allocations: 1.409 MB / 394 MB, free: 30.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/0.2608, allocations: 104 kB / 394.1 MB, free: 30.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.2608, allocations: 16 kB / 394.2 MB, free: 30.47 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.0001645/0.261, allocations: 181.5 kB / 394.3 MB, free: 30.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.386e-05/0.2611, allocations: 43.52 kB / 394.4 MB, free: 30.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.2612, allocations: 59.73 kB / 394.4 MB, free: 30.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2612, allocations: 4 kB / 394.4 MB, free: 30.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2612, allocations: 0 / 394.4 MB, free: 30.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2612, allocations: 0 / 394.4 MB, free: 30.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/0.2635, allocations: 1.489 MB / 395.9 MB, free: 28.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2635, allocations: 4 kB / 395.9 MB, free: 28.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.2638, allocations: 92.05 kB / 396 MB, free: 28.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006277/0.2645, allocations: 481.4 kB / 396.5 MB, free: 28.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.079e-05/0.2645, allocations: 23.92 kB / 396.5 MB, free: 28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007939/0.2653, allocations: 1.374 MB / 397.9 MB, free: 26.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2653, allocations: 3.938 kB / 397.9 MB, free: 26.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.267, allocations: 1.1 MB / 399 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.2671, allocations: 168.5 kB / 399.2 MB, free: 25.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.796e-05/0.2672, allocations: 23.98 kB / 399.2 MB, free: 25.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/0.2676, allocations: 79.86 kB / 399.3 MB, free: 25.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.2678, allocations: 96.28 kB / 399.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.2678, allocations: 27.97 kB / 399.4 MB, free: 25.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001582/0.268, allocations: 198 kB / 399.6 MB, free: 24.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.268, allocations: 0 / 399.6 MB, free: 24.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004011/0.2684, allocations: 132.1 kB / 399.7 MB, free: 24.71 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.000188/0.2686, allocations: 151 kB / 399.8 MB, free: 24.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.2696, allocations: 0.5972 MB / 400.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2696, allocations: 8 kB / 400.5 MB, free: 23.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005736/0.2702, allocations: 342.3 kB / 400.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005573/0.2708, allocations: 72.86 kB / 400.9 MB, free: 23.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003103/0.2739, allocations: 1.827 MB / 402.7 MB, free: 21.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.2741, allocations: 0.8243 MB / 403.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.2743, allocations: 39.28 kB / 403.5 MB, free: 20.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.073e-05/0.2743, allocations: 31.42 kB / 403.6 MB, free: 20.76 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2743, allocations: 0 / 403.6 MB, free: 20.76 MB / 298.7 MB Notification: Performance of Templates: time 0.01079/0.2851, allocations: 9.24 MB / 412.8 MB, free: 11.54 MB / 298.7 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","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches