Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 187 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.167/1.167, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009269/0.0009268, allocations: 106.3 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007289/0.000729, allocations: 47.92 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1903, allocations: 46.61 MB / 373.8 MB, free: 45.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003381/0.1938, allocations: 2.215 MB / 376 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.195, allocations: 0.7399 MB / 376.8 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.554e-05/0.1951, allocations: 2.812 kB / 376.8 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.1953, allocations: 28.31 kB / 376.8 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.1955, allocations: 63 kB / 376.9 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.1957, allocations: 88.38 kB / 377 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002347/0.196, allocations: 257.4 kB / 377.2 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.1961, allocations: 54.69 kB / 377.3 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.1963, allocations: 108.1 kB / 377.4 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.1965, allocations: 124.1 kB / 377.5 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.615e-05/0.1965, allocations: 12.38 kB / 377.5 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.1966, allocations: 62.39 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-05/0.1967, allocations: 44.06 kB / 377.6 MB, free: 43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.1968, allocations: 104.8 kB / 377.7 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.1971, allocations: 271.7 kB / 378 MB, free: 42.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1971, allocations: 0 / 378 MB, free: 42.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1971, allocations: 1.281 kB / 378 MB, free: 42.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.83e-06/0.1971, allocations: 0 / 378 MB, free: 42.74 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.0008594/0.198, allocations: 0.5566 MB / 378.5 MB, free: 42.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.198, allocations: 9.281 kB / 378.5 MB, free: 42.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.1981, allocations: 25.28 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.1983, allocations: 243.3 kB / 378.8 MB, free: 41.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.1983, allocations: 13.12 kB / 378.8 MB, free: 41.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.1984, allocations: 24.52 kB / 378.8 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/0.1988, allocations: 236.5 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.1988, allocations: 1.094 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.1988, allocations: 6.281 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1988, allocations: 4.625 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004189/0.1992, allocations: 197.2 kB / 379.3 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008336/0.2001, allocations: 0.6602 MB / 379.9 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004869/0.2006, allocations: 210 kB / 380.1 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.2008, allocations: 99.97 kB / 380.2 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.2008, allocations: 1.344 kB / 380.2 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.2012, allocations: 162.1 kB / 380.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.2012, allocations: 4 kB / 380.4 MB, free: 40.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001997/0.2032, allocations: 1.16 MB / 381.6 MB, free: 39.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.12e-05/0.2032, allocations: 58.25 kB / 381.6 MB, free: 39.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.2033, allocations: 194.3 kB / 381.8 MB, free: 39.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.2034, allocations: 32.05 kB / 381.8 MB, free: 39.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/0.2034, allocations: 141.5 kB / 382 MB, free: 39.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.477e-05/0.2035, allocations: 94.08 kB / 382.1 MB, free: 39.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.443e-05/0.2036, allocations: 60.34 kB / 382.1 MB, free: 39.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.303e-05/0.2036, allocations: 340.1 kB / 382.5 MB, free: 39.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/0.2039, allocations: 100.7 kB / 382.6 MB, free: 39.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.2041, allocations: 151.5 kB / 382.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.2045, allocations: 240.5 kB / 382.9 MB, free: 38.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2045, allocations: 1.344 kB / 382.9 MB, free: 38.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006981/0.2052, allocations: 406.8 kB / 383.3 MB, free: 38.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.2053, allocations: 31.08 kB / 383.4 MB, free: 38.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.2053, allocations: 9.109 kB / 383.4 MB, free: 38.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001988/0.2055, allocations: 64.83 kB / 383.4 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.2057, allocations: 60.09 kB / 383.5 MB, free: 38.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003275/0.206, allocations: 0.6122 MB / 384.1 MB, free: 37.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.2063, allocations: 29.41 kB / 384.1 MB, free: 37.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.2063, allocations: 7.75 kB / 384.1 MB, free: 37.89 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 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * 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 9.641e-05/0.2064, allocations: 150.4 kB / 384.3 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/0.2064, allocations: 21.34 kB / 384.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.47e-05/0.2065, allocations: 26.72 kB / 384.3 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2065, allocations: 2.281 kB / 384.3 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2065, allocations: 0 / 384.3 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2065, allocations: 5.016 kB / 384.3 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009013/0.2074, allocations: 0.675 MB / 385 MB, free: 37.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2075, allocations: 1.438 kB / 385 MB, free: 37.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.2077, allocations: 44.72 kB / 385.1 MB, free: 37.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001429/0.2078, allocations: 70.84 kB / 385.1 MB, free: 37.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.2078, allocations: 1.469 kB / 385.1 MB, free: 37.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002838/0.2081, allocations: 0.6134 MB / 385.7 MB, free: 36.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2081, allocations: 0 / 385.7 MB, free: 36.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005347/0.2135, allocations: 4.398 MB / 390.1 MB, free: 32.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-05/0.2136, allocations: 116.9 kB / 390.3 MB, free: 32.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.955e-05/0.2136, allocations: 11.98 kB / 390.3 MB, free: 32.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.2138, allocations: 32.03 kB / 390.3 MB, free: 32.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.557e-05/0.2139, allocations: 31.95 kB / 390.3 MB, free: 32.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.2139, allocations: 7.984 kB / 390.3 MB, free: 32.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.244e-05/0.214, allocations: 143.5 kB / 390.5 MB, free: 31.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.214, allocations: 0 / 390.5 MB, free: 31.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004181/0.2145, allocations: 120 kB / 390.6 MB, free: 31.85 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.0001773/0.2146, allocations: 151.4 kB / 390.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005977/0.2152, allocations: 331.1 kB / 391.1 MB, free: 31.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2153, allocations: 0 / 391.1 MB, free: 31.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002955/0.2156, allocations: 135.9 kB / 391.2 MB, free: 31.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.2159, allocations: 43.98 kB / 391.2 MB, free: 31.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.2171, allocations: 1.066 MB / 392.3 MB, free: 30.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.2172, allocations: 0.744 MB / 393.1 MB, free: 29.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.78e-05/0.2174, allocations: 25.94 kB / 393.1 MB, free: 29.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.826e-05/0.2174, allocations: 19.44 kB / 393.1 MB, free: 29.25 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2174, allocations: 0 / 393.1 MB, free: 29.25 MB / 298.7 MB Notification: Performance of Templates: time 0.006097/0.2235, allocations: 4.542 MB / 397.6 MB, free: 24.73 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@2/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