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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 96.02 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0019/0.0019, allocations: 177 kB / 24.45 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 43.94 kB / 371.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2258, allocations: 52.17 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003536/0.2294, allocations: 2.098 MB / 425.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.2306, allocations: 0.6622 MB / 426.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.529e-05/0.2307, allocations: 0 / 426.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.2309, allocations: 35.66 kB / 426.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.2311, allocations: 63.48 kB / 426.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.2314, allocations: 123.7 kB / 426.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003342/0.2318, allocations: 271.4 kB / 427 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.2319, allocations: 44.16 kB / 427.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.2321, allocations: 119.6 kB / 427.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.2323, allocations: 115.5 kB / 427.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.2323, allocations: 20 kB / 427.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.2325, allocations: 67.95 kB / 427.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.62e-05/0.2326, allocations: 59.81 kB / 427.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.2327, allocations: 91.59 kB / 427.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003815/0.2331, allocations: 289.8 kB / 427.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2331, allocations: 0 / 427.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2331, allocations: 0 / 427.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.2331, allocations: 0 / 427.8 MB, free: 10.41 MB / 334.1 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.001021/0.2341, allocations: 498.8 kB / 428.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2341, allocations: 8.031 kB / 428.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.487e-05/0.2342, allocations: 32.75 kB / 428.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.2345, allocations: 174.2 kB / 428.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.2345, allocations: 16.38 kB / 428.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.2346, allocations: 20.38 kB / 428.6 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005136/0.2351, allocations: 247.3 kB / 428.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.2351, allocations: 11.94 kB / 428.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.2351, allocations: 8 kB / 428.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.2351, allocations: 4 kB / 428.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005056/0.2356, allocations: 187.9 kB / 429 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.2367, allocations: 0.5585 MB / 429.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005739/0.2372, allocations: 190.5 kB / 429.8 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.2375, allocations: 104.7 kB / 429.9 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.2375, allocations: 4 kB / 429.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003609/0.2379, allocations: 163 kB / 430 MB, free: 8.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.2379, allocations: 0 / 430 MB, free: 8.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.002403/0.2403, allocations: 0.9168 MB / 430.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.2403, allocations: 55.41 kB / 431 MB, free: 7.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.2405, allocations: 203.9 kB / 431.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.2406, allocations: 37.7 kB / 431.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.2407, allocations: 132.5 kB / 431.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.784e-05/0.2407, allocations: 99.14 kB / 431.5 MB, free: 6.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.2409, allocations: 61.7 kB / 431.5 MB, free: 6.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.241, allocations: 330.8 kB / 431.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.2413, allocations: 133.7 kB / 432 MB, free: 6.027 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.2417, allocations: 174 kB / 432.1 MB, free: 5.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005334/0.2422, allocations: 255.7 kB / 432.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.2422, allocations: 0 / 432.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009023/0.2431, allocations: 426.5 kB / 432.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.2431, allocations: 33.7 kB / 432.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2431, allocations: 4.062 kB / 432.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/0.2434, allocations: 72.75 kB / 432.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/0.2436, allocations: 51.91 kB / 433 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005713/0.2442, allocations: 0.6148 MB / 433.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.2444, allocations: 32 kB / 433.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.2444, allocations: 8.062 kB / 433.6 MB, free: 4.289 MB / 334.1 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 0.0001524/0.2446, allocations: 149.7 kB / 433.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.831e-05/0.2447, allocations: 15.91 kB / 433.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.538e-05/0.2447, allocations: 26.02 kB / 433.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.2447, allocations: 7.984 kB / 433.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2447, allocations: 0 / 433.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2447, allocations: 3.984 kB / 433.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.2458, allocations: 0.5932 MB / 434.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2458, allocations: 0 / 434.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/0.2461, allocations: 43.84 kB / 434.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001608/0.2462, allocations: 60.83 kB / 434.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.2463, allocations: 11.98 kB / 434.5 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005287/0.2468, allocations: 0.607 MB / 435.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2468, allocations: 64 / 435.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.2478, allocations: 0.5085 MB / 435.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.504e-05/0.2479, allocations: 39.81 kB / 435.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/0.248, allocations: 8 kB / 435.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.2482, allocations: 31.91 kB / 435.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.697e-05/0.2483, allocations: 39.92 kB / 435.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.2483, allocations: 8 kB / 435.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001408/0.2485, allocations: 143.4 kB / 435.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2485, allocations: 4 kB / 435.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003345/0.2488, allocations: 71.94 kB / 436 MB, free: 1.828 MB / 334.1 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.0001978/0.249, allocations: 119.5 kB / 436.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007712/0.2498, allocations: 333 kB / 436.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2498, allocations: 0 / 436.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003612/0.2501, allocations: 131.8 kB / 436.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003962/0.2505, allocations: 43.91 kB / 436.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.2519, allocations: 0.681 MB / 437.3 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001373/0.252, allocations: 129.6 kB / 437.4 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.865e-05/0.2521, allocations: 27.44 kB / 437.4 MB, free: 304 kB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2521, allocations: 3.938 kB / 437.4 MB, free: 300 kB / 334.1 MB Notification: Performance of Templates: time 0.006606/0.2587, allocations: 3.923 MB / 441.4 MB, free: 12.39 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.901387624442577]