Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001776/0.001776, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 226.8 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009728/0.0009729, allocations: 100.9 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 55.91 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2273, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002837/0.2301, allocations: 2.367 MB / 409.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009331/0.2311, allocations: 0.8273 MB / 410.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.407e-05/0.2312, allocations: 4 kB / 410.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002183/0.2314, allocations: 39.77 kB / 410.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.2316, allocations: 98.47 kB / 410.4 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000124/0.2317, allocations: 55.94 kB / 410.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001877/0.2319, allocations: 267.4 kB / 410.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.2321, allocations: 64.19 kB / 410.8 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.2322, allocations: 111.6 kB / 410.9 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.2324, allocations: 127.4 kB / 411 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.958e-05/0.2324, allocations: 12 kB / 411 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.2326, allocations: 67.97 kB / 411.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.905e-05/0.2326, allocations: 47.83 kB / 411.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.641e-05/0.2327, allocations: 107.4 kB / 411.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.2329, allocations: 288.6 kB / 411.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.233, allocations: 4 kB / 411.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.233, allocations: 0 / 411.5 MB, free: 23.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.233, allocations: 0 / 411.5 MB, free: 23.33 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.0006795/0.2337, allocations: 0.5457 MB / 412.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.2337, allocations: 8.031 kB / 412.1 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.2339, allocations: 36.64 kB / 412.1 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.2341, allocations: 244 kB / 412.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.2341, allocations: 12.75 kB / 412.3 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.584e-05/0.2341, allocations: 24.28 kB / 412.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.2345, allocations: 218.7 kB / 412.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.2345, allocations: 0 / 412.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.2345, allocations: 8 kB / 412.6 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/0.2345, allocations: 4 kB / 412.6 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.2348, allocations: 159.2 kB / 412.8 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009074/0.2357, allocations: 0.774 MB / 413.5 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.2361, allocations: 142.8 kB / 413.7 MB, free: 20.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.2362, allocations: 72.78 kB / 413.7 MB, free: 20.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.2363, allocations: 7.984 kB / 413.7 MB, free: 20.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/0.2363, allocations: 38.55 kB / 413.8 MB, free: 20.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.2363, allocations: 0 / 413.8 MB, free: 20.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.00169/0.238, allocations: 0.9909 MB / 414.8 MB, free: 19.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.238, allocations: 55.34 kB / 414.8 MB, free: 19.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.2382, allocations: 215.8 kB / 415 MB, free: 19.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.2382, allocations: 33.7 kB / 415.1 MB, free: 19.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.448e-05/0.2383, allocations: 136.3 kB / 415.2 MB, free: 19.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.079e-05/0.2384, allocations: 74.91 kB / 415.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.765e-05/0.2384, allocations: 49.7 kB / 415.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.537e-05/0.2385, allocations: 326.8 kB / 415.6 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.2386, allocations: 71.95 kB / 415.7 MB, free: 18.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.2388, allocations: 107.4 kB / 415.8 MB, free: 18.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.239, allocations: 160.8 kB / 416 MB, free: 18.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.239, allocations: 3.938 kB / 416 MB, free: 18.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003894/0.2394, allocations: 274 kB / 416.2 MB, free: 18.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.2394, allocations: 4.062 kB / 416.3 MB, free: 18.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2395, allocations: 8 kB / 416.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001836/0.2396, allocations: 52.83 kB / 416.3 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.2398, allocations: 39.92 kB / 416.4 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.2412, allocations: 1.649 MB / 418 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/0.2413, allocations: 27.88 kB / 418 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.2414, allocations: 12.06 kB / 418 MB, free: 16.29 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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * 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.288e-05/0.2415, allocations: 129.8 kB / 418.2 MB, free: 16.15 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.535e-05/0.2415, allocations: 19.81 kB / 418.2 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.669e-05/0.2416, allocations: 25.86 kB / 418.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.2416, allocations: 4 kB / 418.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.2416, allocations: 3.938 kB / 418.2 MB, free: 16.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2416, allocations: 7.969 kB / 418.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000675/0.2423, allocations: 0.6101 MB / 418.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2423, allocations: 0 / 418.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.2425, allocations: 35.92 kB / 418.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.2426, allocations: 52.83 kB / 418.9 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.2426, allocations: 12.06 kB / 418.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.2436, allocations: 1.546 MB / 420.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2437, allocations: 0 / 420.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003404/0.2471, allocations: 3.707 MB / 424.2 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.782e-05/0.2472, allocations: 116.9 kB / 424.3 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.2472, allocations: 4.094 kB / 424.3 MB, free: 9.477 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.2474, allocations: 23.92 kB / 424.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.2475, allocations: 63.89 kB / 424.4 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.2475, allocations: 4 kB / 424.4 MB, free: 9.387 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001069/0.2476, allocations: 161.5 kB / 424.6 MB, free: 9.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2477, allocations: 0 / 424.6 MB, free: 9.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005195/0.2482, allocations: 115.9 kB / 424.7 MB, free: 9.117 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.0009459/0.2491, allocations: 467.9 kB / 425.1 MB, free: 8.812 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005112/0.2497, allocations: 309.1 kB / 425.4 MB, free: 8.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2497, allocations: 0 / 425.4 MB, free: 8.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.2499, allocations: 226.5 kB / 425.6 MB, free: 8.266 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.2503, allocations: 40.22 kB / 425.7 MB, free: 8.227 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.2517, allocations: 1.079 MB / 426.8 MB, free: 7.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001609/0.2518, allocations: 0.756 MB / 427.5 MB, free: 6.309 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.2519, allocations: 33.92 kB / 427.6 MB, free: 6.273 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.737e-05/0.252, allocations: 23.42 kB / 427.6 MB, free: 6.25 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.252, allocations: 3.938 kB / 427.6 MB, free: 6.246 MB / 298.7 MB Notification: Performance of Templates: time 0.006954/0.259, allocations: 4.581 MB / 432.2 MB, free: 1.688 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@2/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