Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009836/0.0009836, allocations: 198.7 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000743/0.000743, allocations: 91.97 kB / 299.8 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002155/0.0002155, allocations: 8 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1927, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.001844/0.1946, allocations: 1.912 MB / 414 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.1956, allocations: 1.103 MB / 415.1 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.015e-05/0.1957, allocations: 4 kB / 415.1 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.1959, allocations: 36.27 kB / 415.1 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002254/0.1962, allocations: 99.94 kB / 415.2 MB, free: 22.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.1963, allocations: 63.92 kB / 415.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.1966, allocations: 271.4 kB / 415.5 MB, free: 22.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.1967, allocations: 52.34 kB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.1969, allocations: 123.5 kB / 415.7 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.1971, allocations: 121.5 kB / 415.8 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.1971, allocations: 12 kB / 415.8 MB, free: 22.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.1972, allocations: 59.98 kB / 415.9 MB, free: 21.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.1973, allocations: 47.81 kB / 415.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.56e-05/0.1974, allocations: 133.1 kB / 416.1 MB, free: 21.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.1976, allocations: 288.6 kB / 416.3 MB, free: 21.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1977, allocations: 4 kB / 416.4 MB, free: 21.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1977, allocations: 0 / 416.4 MB, free: 21.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1977, allocations: 0 / 416.4 MB, free: 21.49 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008006/0.1985, allocations: 0.5627 MB / 416.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.1985, allocations: 8.031 kB / 416.9 MB, free: 20.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.1987, allocations: 40.64 kB / 417 MB, free: 20.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.1989, allocations: 243.8 kB / 417.2 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.1989, allocations: 16.36 kB / 417.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.613e-05/0.199, allocations: 20.38 kB / 417.2 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.1994, allocations: 235.5 kB / 417.5 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.1994, allocations: 15.86 kB / 417.5 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.1994, allocations: 8 kB / 417.5 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1994, allocations: 4 kB / 417.5 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004074/0.1998, allocations: 195.7 kB / 417.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007693/0.2006, allocations: 0.6525 MB / 418.3 MB, free: 19.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.2011, allocations: 226.3 kB / 418.6 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.2013, allocations: 104.8 kB / 418.7 MB, free: 19.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.2013, allocations: 0 / 418.7 MB, free: 19.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003255/0.2017, allocations: 181.8 kB / 418.8 MB, free: 18.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.503e-06/0.2017, allocations: 0 / 418.8 MB, free: 18.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.001951/0.2036, allocations: 1.218 MB / 420.1 MB, free: 17.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/0.2037, allocations: 55.41 kB / 420.1 MB, free: 17.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.2038, allocations: 206.9 kB / 420.3 MB, free: 17.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.2039, allocations: 33.7 kB / 420.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.809e-05/0.2039, allocations: 124.4 kB / 420.5 MB, free: 17.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.872e-05/0.204, allocations: 94.73 kB / 420.6 MB, free: 16.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/0.204, allocations: 4 kB / 420.6 MB, free: 16.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.006e-05/0.204, allocations: 334.8 kB / 420.9 MB, free: 16.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.2043, allocations: 107.9 kB / 421 MB, free: 16.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.2046, allocations: 143.7 kB / 421.1 MB, free: 16.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004053/0.205, allocations: 262 kB / 421.4 MB, free: 16.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.205, allocations: 0 / 421.4 MB, free: 16.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006536/0.2056, allocations: 391.6 kB / 421.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.2057, allocations: 37.69 kB / 421.8 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.2057, allocations: 7.875 kB / 421.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.2059, allocations: 56.78 kB / 421.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.2061, allocations: 51.95 kB / 421.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.2073, allocations: 1.643 MB / 423.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.2075, allocations: 44.06 kB / 423.6 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.2076, allocations: 19.92 kB / 423.6 MB, free: 13.7 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 (31): * Single equations (assignments): 29 * 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 9.878e-05/0.2077, allocations: 145.7 kB / 423.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.2077, allocations: 19.81 kB / 423.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.2078, allocations: 30.55 kB / 423.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.2078, allocations: 4 kB / 423.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2078, allocations: 0 / 423.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.2078, allocations: 48 / 423.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008781/0.2087, allocations: 0.7203 MB / 424.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2087, allocations: 0 / 424.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/0.2089, allocations: 43.97 kB / 424.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.209, allocations: 52.83 kB / 424.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.209, allocations: 4 kB / 424.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009432/0.21, allocations: 1.542 MB / 426.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.21, allocations: 3.938 kB / 426.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007961/0.2108, allocations: 0.5307 MB / 426.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-05/0.2109, allocations: 112.9 kB / 426.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.399e-05/0.2109, allocations: 8 kB / 426.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.2112, allocations: 43.95 kB / 426.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.2113, allocations: 75.86 kB / 427 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.2113, allocations: 8 kB / 427 MB, free: 10.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.362e-05/0.2114, allocations: 144.4 kB / 427.1 MB, free: 9.984 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2114, allocations: 0 / 427.1 MB, free: 9.984 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003352/0.2118, allocations: 68 kB / 427.2 MB, free: 9.918 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 (21): * Single equations (assignments): 18 * 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.0007355/0.2125, allocations: 420.5 kB / 427.6 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007179/0.2132, allocations: 468.3 kB / 428 MB, free: 9.125 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2133, allocations: 0 / 428 MB, free: 9.125 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003527/0.2136, allocations: 270.6 kB / 428.3 MB, free: 8.848 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.214, allocations: 43.97 kB / 428.3 MB, free: 8.805 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.2151, allocations: 0.8135 MB / 429.2 MB, free: 7.969 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001523/0.2152, allocations: 0.7518 MB / 429.9 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.2154, allocations: 33.92 kB / 429.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.911e-05/0.2154, allocations: 19.44 kB / 430 MB, free: 7.133 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2154, allocations: 0 / 430 MB, free: 7.133 MB / 298.7 MB Notification: Performance of Templates: time 0.006303/0.2217, allocations: 4.066 MB / 434 MB, free: 3.09 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches