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.OneWayClutch.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.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00147/0.00147, allocations: 175.9 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.394/1.394, 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.0009206/0.0009204, allocations: 89.62 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002593/0.0002594, allocations: 4 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2357, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002207/0.238, allocations: 1.813 MB / 378.4 MB, free: 44.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.2395, allocations: 0.8669 MB / 379.3 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.2397, allocations: 2.188 kB / 379.3 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.2399, allocations: 24.97 kB / 379.3 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002188/0.2402, allocations: 58.36 kB / 379.4 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000394/0.2406, allocations: 96.08 kB / 379.5 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.2409, allocations: 254.3 kB / 379.7 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.2411, allocations: 51.27 kB / 379.8 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002593/0.2414, allocations: 109.9 kB / 379.9 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002474/0.2417, allocations: 107.8 kB / 380 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.2417, allocations: 11.28 kB / 380 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.2419, allocations: 64.66 kB / 380 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.3e-05/0.242, allocations: 38.92 kB / 380.1 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.2422, allocations: 126.6 kB / 380.2 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003743/0.2426, allocations: 264.6 kB / 380.5 MB, free: 42.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2426, allocations: 0 / 380.5 MB, free: 42.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.2426, allocations: 0 / 380.5 MB, free: 42.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2426, allocations: 0 / 380.5 MB, free: 42.62 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001121/0.2437, allocations: 0.5352 MB / 381 MB, free: 42.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.2438, allocations: 10.34 kB / 381 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.2439, allocations: 24.81 kB / 381 MB, free: 42.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/0.2442, allocations: 247.9 kB / 381.3 MB, free: 41.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.625e-05/0.2443, allocations: 15.72 kB / 381.3 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.975e-05/0.2443, allocations: 17.22 kB / 381.3 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006365/0.245, allocations: 237.8 kB / 381.5 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.245, allocations: 5.016 kB / 381.5 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.2451, allocations: 18.48 kB / 381.6 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.2451, allocations: 3.906 kB / 381.6 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006482/0.2457, allocations: 207 kB / 381.8 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.247, allocations: 0.6794 MB / 382.4 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007349/0.2477, allocations: 213.2 kB / 382.7 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.2481, allocations: 109.4 kB / 382.8 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.2481, allocations: 6.094 kB / 382.8 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005234/0.2487, allocations: 172.6 kB / 382.9 MB, free: 40.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.515e-06/0.2487, allocations: 0 / 382.9 MB, free: 40.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.003117/0.2518, allocations: 1.208 MB / 384.1 MB, free: 39.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.2519, allocations: 55.28 kB / 384.2 MB, free: 39.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002344/0.2521, allocations: 195.7 kB / 384.4 MB, free: 39.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.2522, allocations: 33.17 kB / 384.4 MB, free: 39.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.79e-05/0.2523, allocations: 136.7 kB / 384.6 MB, free: 39.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.324e-05/0.2524, allocations: 90.14 kB / 384.6 MB, free: 39.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.039e-05/0.2524, allocations: 5.094 kB / 384.6 MB, free: 39.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.666e-05/0.2525, allocations: 339.4 kB / 385 MB, free: 39.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/0.2529, allocations: 111.7 kB / 385.1 MB, free: 38.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003831/0.2533, allocations: 160.1 kB / 385.2 MB, free: 38.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006525/0.2539, allocations: 261.2 kB / 385.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2539, allocations: 0 / 385.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00115/0.2551, allocations: 418.9 kB / 385.9 MB, free: 38.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/0.2552, allocations: 40.06 kB / 385.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.2552, allocations: 1.281 kB / 385.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.2555, allocations: 72.36 kB / 386 MB, free: 38.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003088/0.2558, allocations: 51.06 kB / 386.1 MB, free: 38.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005469/0.2564, allocations: 0.6198 MB / 386.7 MB, free: 37.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003815/0.2568, allocations: 42.66 kB / 386.7 MB, free: 37.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.2568, allocations: 12.28 kB / 386.7 MB, free: 37.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001648/0.257, allocations: 142.9 kB / 386.9 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.361e-05/0.2571, allocations: 16.94 kB / 386.9 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.561e-05/0.2571, allocations: 26.47 kB / 386.9 MB, free: 37.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.2572, allocations: 10.25 kB / 386.9 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.2572, allocations: 0 / 386.9 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2572, allocations: 5.141 kB / 386.9 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.2585, allocations: 0.6898 MB / 387.6 MB, free: 36.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2585, allocations: 0 / 387.6 MB, free: 36.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000278/0.2588, allocations: 43.97 kB / 387.7 MB, free: 36.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/0.259, allocations: 72.75 kB / 387.7 MB, free: 36.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.259, allocations: 7.984 kB / 387.7 MB, free: 36.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003761/0.2594, allocations: 0.6031 MB / 388.4 MB, free: 36.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2594, allocations: 4.094 kB / 388.4 MB, free: 36.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.2605, allocations: 0.5302 MB / 388.9 MB, free: 35.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.504e-05/0.2606, allocations: 108.9 kB / 389 MB, free: 35.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.49e-05/0.2607, allocations: 8 kB / 389 MB, free: 35.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.261, allocations: 35.97 kB / 389 MB, free: 35.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.2612, allocations: 31.94 kB / 389.1 MB, free: 35.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.2612, allocations: 12 kB / 389.1 MB, free: 35.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001179/0.2613, allocations: 135.5 kB / 389.2 MB, free: 35.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.402e-06/0.2613, allocations: 0 / 389.2 MB, free: 35.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004896/0.2618, allocations: 75.94 kB / 389.3 MB, free: 35.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002228/0.2621, allocations: 132.7 kB / 389.4 MB, free: 35.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007045/0.2628, allocations: 347.8 kB / 389.8 MB, free: 34.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2628, allocations: 0 / 389.8 MB, free: 34.72 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.2631, allocations: 148 kB / 389.9 MB, free: 34.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.2635, allocations: 39.91 kB / 389.9 MB, free: 34.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.2646, allocations: 0.8032 MB / 390.7 MB, free: 33.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001542/0.2648, allocations: 0.7516 MB / 391.5 MB, free: 32.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.921e-05/0.2649, allocations: 21.94 kB / 391.5 MB, free: 32.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.632e-05/0.265, allocations: 27.42 kB / 391.5 MB, free: 32.88 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.265, allocations: 0 / 391.5 MB, free: 32.88 MB / 298.7 MB Notification: Performance of Templates: time 0.005823/0.2708, allocations: 3.414 MB / 395 MB, free: 29.48 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches