Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 200.3 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007646/0.0007646, allocations: 92.05 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002239/0.0002239, allocations: 4 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1954, allocations: 51.4 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002789/0.1983, allocations: 1.965 MB / 414 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.1998, allocations: 1.01 MB / 415 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.1999, allocations: 0 / 415 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000255/0.2002, allocations: 39.78 kB / 415.1 MB, free: 22.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002926/0.2005, allocations: 99.22 kB / 415.2 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.2007, allocations: 55.94 kB / 415.2 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002834/0.201, allocations: 267.4 kB / 415.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.2012, allocations: 56.34 kB / 415.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.2014, allocations: 109.4 kB / 415.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.2016, allocations: 115.5 kB / 415.7 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.2017, allocations: 12 kB / 415.8 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.2019, allocations: 67.91 kB / 415.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.356e-05/0.2019, allocations: 39.84 kB / 415.9 MB, free: 22.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.2021, allocations: 137.1 kB / 416 MB, free: 21.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.2024, allocations: 280.6 kB / 416.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.2025, allocations: 0 / 416.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2025, allocations: 0 / 416.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.2025, allocations: 0 / 416.3 MB, free: 21.61 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007411/0.2032, allocations: 0.5107 MB / 416.8 MB, free: 21.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.2033, allocations: 8.031 kB / 416.8 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.2035, allocations: 36.64 kB / 416.8 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.2037, allocations: 243.9 kB / 417.1 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.2038, allocations: 16.75 kB / 417.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.2038, allocations: 20.36 kB / 417.1 MB, free: 20.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.2042, allocations: 218.7 kB / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.2043, allocations: 7.891 kB / 417.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.2043, allocations: 12 kB / 417.3 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.2043, allocations: 4 kB / 417.3 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004546/0.2048, allocations: 163.2 kB / 417.5 MB, free: 20.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.2061, allocations: 0.774 MB / 418.3 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.2065, allocations: 146.5 kB / 418.4 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.2067, allocations: 77 kB / 418.5 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.889e-05/0.2068, allocations: 0 / 418.5 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.2068, allocations: 38.5 kB / 418.5 MB, free: 19.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/0.2068, allocations: 0 / 418.5 MB, free: 19.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.002215/0.209, allocations: 1.017 MB / 419.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.204e-05/0.2091, allocations: 59.41 kB / 419.6 MB, free: 17.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002486/0.2093, allocations: 203.9 kB / 419.8 MB, free: 17.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.2094, allocations: 33.7 kB / 419.8 MB, free: 17.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.102e-05/0.2094, allocations: 144.2 kB / 420 MB, free: 17.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.952e-05/0.2095, allocations: 71 kB / 420 MB, free: 17.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.2095, allocations: 4 kB / 420 MB, free: 17.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.87e-05/0.2096, allocations: 334.8 kB / 420.4 MB, free: 17.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.2098, allocations: 67.97 kB / 420.4 MB, free: 17.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.2101, allocations: 111.4 kB / 420.5 MB, free: 16.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.2105, allocations: 154 kB / 420.7 MB, free: 16.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2105, allocations: 7.938 kB / 420.7 MB, free: 16.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006272/0.2111, allocations: 276.6 kB / 421 MB, free: 16.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2112, allocations: 8 kB / 421 MB, free: 16.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.2112, allocations: 0 / 421 MB, free: 16.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002456/0.2114, allocations: 56.83 kB / 421 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.2117, allocations: 44.03 kB / 421.1 MB, free: 16.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.2131, allocations: 1.655 MB / 422.7 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.2133, allocations: 32.05 kB / 422.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.2133, allocations: 7.938 kB / 422.8 MB, free: 14.59 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: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.173e-05/0.2134, allocations: 138.8 kB / 422.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.842e-05/0.2134, allocations: 23.81 kB / 422.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.277e-05/0.2135, allocations: 21.88 kB / 423 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2135, allocations: 0 / 423 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.2135, allocations: 3.938 kB / 423 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2135, allocations: 11.98 kB / 423 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006539/0.2142, allocations: 0.6088 MB / 423.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2142, allocations: 4 kB / 423.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.2143, allocations: 35.98 kB / 423.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001219/0.2145, allocations: 56.83 kB / 423.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.2145, allocations: 0 / 423.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000977/0.2155, allocations: 1.562 MB / 425.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2155, allocations: 0 / 425.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005094/0.216, allocations: 433.6 kB / 425.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.533e-05/0.2161, allocations: 116.9 kB / 425.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.2161, allocations: 8 kB / 425.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.2163, allocations: 31.97 kB / 425.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.2165, allocations: 55.91 kB / 425.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2165, allocations: 15.98 kB / 425.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001035/0.2166, allocations: 153.5 kB / 426 MB, free: 11.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2166, allocations: 0 / 426 MB, free: 11.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003274/0.2169, allocations: 72 kB / 426.1 MB, free: 11.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0006978/0.2176, allocations: 433.6 kB / 426.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004661/0.2181, allocations: 314.5 kB / 426.8 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2181, allocations: 4 kB / 426.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.2184, allocations: 222.8 kB / 427.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.2188, allocations: 39.97 kB / 427.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.2198, allocations: 0.8622 MB / 428 MB, free: 9.199 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.22, allocations: 0.7443 MB / 428.7 MB, free: 8.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.811e-05/0.2201, allocations: 29.92 kB / 428.7 MB, free: 8.402 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.2201, allocations: 19.44 kB / 428.7 MB, free: 8.383 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2201, allocations: 0 / 428.7 MB, free: 8.383 MB / 298.7 MB Notification: Performance of Templates: time 0.00576/0.2259, allocations: 3.559 MB / 432.3 MB, free: 4.848 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches