Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 110.3 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007787/0.0007787, allocations: 35.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2262, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002601/0.2289, allocations: 2.217 MB / 401.7 MB, free: 31.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008959/0.2298, allocations: 0.7032 MB / 402.4 MB, free: 30.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.736e-05/0.2299, allocations: 4 kB / 402.4 MB, free: 30.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.23, allocations: 15.86 kB / 402.4 MB, free: 30.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.2302, allocations: 63.47 kB / 402.5 MB, free: 30.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.2304, allocations: 87.84 kB / 402.5 MB, free: 30.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001891/0.2306, allocations: 271.4 kB / 402.8 MB, free: 30.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.2307, allocations: 44.38 kB / 402.9 MB, free: 29.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.2309, allocations: 107.5 kB / 403 MB, free: 29.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.231, allocations: 119.5 kB / 403.1 MB, free: 29.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.2311, allocations: 12 kB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.885e-05/0.2312, allocations: 55.95 kB / 403.1 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.864e-05/0.2312, allocations: 47.77 kB / 403.2 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.453e-05/0.2313, allocations: 111.4 kB / 403.3 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002106/0.2315, allocations: 272.6 kB / 403.6 MB, free: 29.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2315, allocations: 0 / 403.6 MB, free: 29.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.2316, allocations: 0 / 403.6 MB, free: 29.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.2316, allocations: 0 / 403.6 MB, free: 29.25 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.0008006/0.2324, allocations: 0.5549 MB / 404.1 MB, free: 28.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.2324, allocations: 12.03 kB / 404.1 MB, free: 28.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.508e-05/0.2325, allocations: 24.66 kB / 404.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.2327, allocations: 235.9 kB / 404.4 MB, free: 28.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.2327, allocations: 20.36 kB / 404.4 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.532e-05/0.2327, allocations: 16.38 kB / 404.4 MB, free: 28.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003931/0.2331, allocations: 243.4 kB / 404.7 MB, free: 28.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.2331, allocations: 3.906 kB / 404.7 MB, free: 28.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.2332, allocations: 8 kB / 404.7 MB, free: 28.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2332, allocations: 7.938 kB / 404.7 MB, free: 28.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004093/0.2336, allocations: 195.8 kB / 404.9 MB, free: 27.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000772/0.2344, allocations: 0.6759 MB / 405.5 MB, free: 27.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.2349, allocations: 195.9 kB / 405.7 MB, free: 26.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.2351, allocations: 96.81 kB / 405.8 MB, free: 26.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.2351, allocations: 4 kB / 405.8 MB, free: 26.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003388/0.2355, allocations: 169.4 kB / 406 MB, free: 26.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.2355, allocations: 3.938 kB / 406 MB, free: 26.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001962/0.2374, allocations: 1.142 MB / 407.1 MB, free: 25.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/0.2375, allocations: 59.41 kB / 407.2 MB, free: 25.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.2376, allocations: 192 kB / 407.4 MB, free: 25.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.2376, allocations: 29.7 kB / 407.4 MB, free: 25.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/0.2377, allocations: 140.3 kB / 407.6 MB, free: 24.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.69e-05/0.2377, allocations: 90.73 kB / 407.6 MB, free: 24.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.264e-05/0.2378, allocations: 61.69 kB / 407.7 MB, free: 24.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.96e-05/0.2379, allocations: 330.8 kB / 408 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.2381, allocations: 112.2 kB / 408.1 MB, free: 24.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.2384, allocations: 152.2 kB / 408.3 MB, free: 24.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004011/0.2388, allocations: 251.8 kB / 408.5 MB, free: 23.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2388, allocations: 0 / 408.5 MB, free: 23.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006864/0.2395, allocations: 388.8 kB / 408.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.2395, allocations: 45.62 kB / 409 MB, free: 23.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2395, allocations: 3.938 kB / 409 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002066/0.2397, allocations: 72.89 kB / 409 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.2399, allocations: 55.89 kB / 409.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003237/0.2403, allocations: 0.6109 MB / 409.7 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.2405, allocations: 44.05 kB / 409.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.2406, allocations: 8 kB / 409.8 MB, free: 22.65 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.613e-05/0.2407, allocations: 148.7 kB / 409.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.2407, allocations: 15.81 kB / 409.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.616e-05/0.2407, allocations: 25.88 kB / 409.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2408, allocations: 4 kB / 409.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2408, allocations: 0 / 409.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2408, allocations: 3.984 kB / 409.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009003/0.2417, allocations: 0.6828 MB / 410.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2417, allocations: 3.984 kB / 410.6 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.2419, allocations: 39.91 kB / 410.7 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001371/0.242, allocations: 64.83 kB / 410.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.2421, allocations: 11.98 kB / 410.7 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002755/0.2423, allocations: 0.6108 MB / 411.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2424, allocations: 0 / 411.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005419/0.2478, allocations: 4.396 MB / 415.8 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.895e-05/0.2479, allocations: 116.9 kB / 415.9 MB, free: 16.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.897e-05/0.2479, allocations: 8 kB / 415.9 MB, free: 16.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.2481, allocations: 27.97 kB / 415.9 MB, free: 16.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.094e-05/0.2482, allocations: 31.94 kB / 415.9 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.2482, allocations: 8 kB / 415.9 MB, free: 16.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.683e-05/0.2483, allocations: 143.4 kB / 416.1 MB, free: 15.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2483, allocations: 8 kB / 416.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004484/0.2488, allocations: 116 kB / 416.2 MB, free: 15.75 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.0002061/0.249, allocations: 150.5 kB / 416.4 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006612/0.2497, allocations: 331.1 kB / 416.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2497, allocations: 0 / 416.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000296/0.25, allocations: 151.8 kB / 416.8 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.2504, allocations: 39.86 kB / 416.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.2517, allocations: 1.053 MB / 417.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.2519, allocations: 0.7556 MB / 418.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.862e-05/0.252, allocations: 25.94 kB / 418.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.174e-05/0.252, allocations: 19.44 kB / 418.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.252, allocations: 0 / 418.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of Templates: time 0.006875/0.2589, allocations: 4.529 MB / 423.2 MB, free: 8.637 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches