Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.001491, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001043/0.001043, allocations: 95.27 kB / 299.8 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000222/0.0002221, allocations: 4 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2046, allocations: 51.41 MB / 412 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002626/0.2073, allocations: 2.717 MB / 414.8 MB, free: 23.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2087, allocations: 1.264 MB / 416 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.2089, allocations: 8.781 kB / 416 MB, free: 21.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000264/0.2092, allocations: 67.61 kB / 416.1 MB, free: 21.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002804/0.2095, allocations: 155 kB / 416.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.2097, allocations: 167.8 kB / 416.4 MB, free: 21.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003784/0.2101, allocations: 0.6198 MB / 417 MB, free: 20.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.2103, allocations: 115.9 kB / 417.2 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002746/0.2106, allocations: 266.9 kB / 417.4 MB, free: 20.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002454/0.2108, allocations: 282.8 kB / 417.7 MB, free: 20.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.666e-05/0.2109, allocations: 28 kB / 417.7 MB, free: 20.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.2111, allocations: 79.98 kB / 417.8 MB, free: 20.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.2112, allocations: 103.6 kB / 417.9 MB, free: 19.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.2114, allocations: 272.3 kB / 418.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.2118, allocations: 0.5853 MB / 418.7 MB, free: 19.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2118, allocations: 4 kB / 418.8 MB, free: 19.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2118, allocations: 0 / 418.8 MB, free: 19.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2118, allocations: 4 kB / 418.8 MB, free: 19.09 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001067/0.2129, allocations: 0.7525 MB / 419.5 MB, free: 18.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.2129, allocations: 12.03 kB / 419.5 MB, free: 18.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.2131, allocations: 60.28 kB / 419.6 MB, free: 18.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.2134, allocations: 343.2 kB / 419.9 MB, free: 17.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.2135, allocations: 29.38 kB / 419.9 MB, free: 17.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.91e-05/0.2136, allocations: 48.28 kB / 420 MB, free: 17.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000759/0.2143, allocations: 470.6 kB / 420.4 MB, free: 17.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.2144, allocations: 0 / 420.4 MB, free: 17.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.063e-05/0.2144, allocations: 19.94 kB / 420.5 MB, free: 17.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.2144, allocations: 8 kB / 420.5 MB, free: 17.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008007/0.2152, allocations: 471.6 kB / 420.9 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.2169, allocations: 1.16 MB / 422.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007402/0.2176, allocations: 428.9 kB / 422.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004333/0.2181, allocations: 270.4 kB / 422.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.2181, allocations: 4.562 kB / 422.8 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.2182, allocations: 43.06 kB / 422.8 MB, free: 14.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 1.663e-06/0.2182, allocations: 0 / 422.8 MB, free: 14.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.004114/0.2223, allocations: 2.379 MB / 425.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.133e-05/0.2223, allocations: 63.97 kB / 425.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.2226, allocations: 308.4 kB / 425.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.2226, allocations: 45.69 kB / 425.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.905e-05/0.2227, allocations: 181.4 kB / 425.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.2228, allocations: 213 kB / 426 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.2228, allocations: 8 kB / 426 MB, free: 11.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.879e-05/0.2229, allocations: 354.8 kB / 426.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/0.2233, allocations: 225.2 kB / 426.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004097/0.2237, allocations: 276.8 kB / 426.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.2244, allocations: 394.3 kB / 427.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2244, allocations: 0 / 427.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00121/0.2256, allocations: 0.7171 MB / 427.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2256, allocations: 7.938 kB / 428 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2256, allocations: 0 / 428 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007146/0.2263, allocations: 325.5 kB / 428.3 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.2267, allocations: 87.89 kB / 428.4 MB, free: 9.117 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009348/0.2276, allocations: 1.389 MB / 429.7 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.2281, allocations: 104.1 kB / 429.8 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.816e-05/0.2281, allocations: 19.98 kB / 429.9 MB, free: 7.555 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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.2283, allocations: 185.6 kB / 430 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.867e-05/0.2284, allocations: 43.44 kB / 430.1 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.852e-05/0.2285, allocations: 63.8 kB / 430.2 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2285, allocations: 8 kB / 430.2 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2285, allocations: 0 / 430.2 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2285, allocations: 3.984 kB / 430.2 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.2308, allocations: 1.469 MB / 431.6 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.2308, allocations: 4 kB / 431.6 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003438/0.2311, allocations: 83.89 kB / 431.7 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005811/0.2317, allocations: 297.7 kB / 432 MB, free: 5.316 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.2318, allocations: 23.92 kB / 432 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008498/0.2326, allocations: 1.354 MB / 433.4 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2326, allocations: 4.031 kB / 433.4 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.2342, allocations: 1.058 MB / 434.5 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.2344, allocations: 168.6 kB / 434.6 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.675e-05/0.2345, allocations: 16.09 kB / 434.6 MB, free: 2.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004161/0.2349, allocations: 83.86 kB / 434.7 MB, free: 2.504 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.2351, allocations: 108.3 kB / 434.8 MB, free: 2.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.2352, allocations: 19.98 kB / 434.8 MB, free: 2.379 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001604/0.2354, allocations: 219.1 kB / 435.1 MB, free: 2.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2354, allocations: 0 / 435.1 MB, free: 2.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000396/0.2358, allocations: 128 kB / 435.2 MB, free: 2.035 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000748/0.2365, allocations: 441.3 kB / 435.6 MB, free: 1.699 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.2376, allocations: 0.5742 MB / 436.2 MB, free: 1.129 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2376, allocations: 0 / 436.2 MB, free: 1.129 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006193/0.2382, allocations: 339.3 kB / 436.5 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005935/0.2388, allocations: 80.61 kB / 436.6 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.2423, allocations: 1.86 MB / 438.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.2427, allocations: 0.8326 MB / 439.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000165/0.2428, allocations: 43.33 kB / 439.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.2429, allocations: 35.42 kB / 439.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of SimCode: time 2.6e-07/0.243, allocations: 0 / 439.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of Templates: time 0.01348/0.2564, allocations: 9.053 MB / 448.4 MB, free: 4.871 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches