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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 103.5 kB / 21.74 MB, free: 2.688 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002052/0.002052, allocations: 163.5 kB / 25.03 MB, free: 8.93 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 158.6 MB / 186.8 MB, free: 2.895 MB / 170.7 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 250.4 MB, free: 7.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.736e-05, allocations: 2.312 kB / 250.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004034/0.004061, allocations: 2.151 MB / 252.5 MB, free: 5.672 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.005571, allocations: 0.7331 MB / 253.2 MB, free: 4.93 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.955e-05/0.005671, allocations: 4 kB / 253.2 MB, free: 4.926 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.005863, allocations: 35.66 kB / 253.3 MB, free: 4.891 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.006069, allocations: 71.41 kB / 253.3 MB, free: 4.82 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.006472, allocations: 111.7 kB / 253.5 MB, free: 4.711 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003812/0.006853, allocations: 283.4 kB / 253.7 MB, free: 4.434 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.00699, allocations: 44.56 kB / 253.8 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002931/0.007283, allocations: 167.6 kB / 253.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.007514, allocations: 99.73 kB / 254 MB, free: 4.125 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.244e-05/0.007566, allocations: 20 kB / 254.1 MB, free: 4.105 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.007721, allocations: 67.95 kB / 254.1 MB, free: 4.039 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.941e-05/0.007821, allocations: 51.77 kB / 254.2 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.007952, allocations: 87.8 kB / 254.3 MB, free: 3.902 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004755/0.008427, allocations: 299 kB / 254.6 MB, free: 3.609 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.008431, allocations: 0 / 254.6 MB, free: 3.609 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.008432, allocations: 0 / 254.6 MB, free: 3.609 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.008438, allocations: 4 kB / 254.6 MB, free: 3.605 MB / 234.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.001323/0.009761, allocations: 0.5867 MB / 255.1 MB, free: 2.977 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.0098, allocations: 15.98 kB / 255.2 MB, free: 2.961 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.009914, allocations: 36.8 kB / 255.2 MB, free: 2.926 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.01023, allocations: 184.1 kB / 255.4 MB, free: 2.719 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.01026, allocations: 20.38 kB / 255.4 MB, free: 2.699 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.194e-05/0.01031, allocations: 20.36 kB / 255.4 MB, free: 2.68 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005168/0.01082, allocations: 225.5 kB / 255.6 MB, free: 2.445 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.01084, allocations: 8.188 kB / 255.6 MB, free: 2.438 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/0.01087, allocations: 8.359 kB / 255.7 MB, free: 2.43 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.01088, allocations: 11.94 kB / 255.7 MB, free: 2.418 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004748/0.01136, allocations: 171.8 kB / 255.8 MB, free: 2.25 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.01259, allocations: 0.6817 MB / 256.5 MB, free: 1.527 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00056/0.01315, allocations: 186.9 kB / 256.7 MB, free: 1.332 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.01338, allocations: 87.66 kB / 256.8 MB, free: 1.242 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.01341, allocations: 4 kB / 256.8 MB, free: 1.238 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003518/0.01376, allocations: 156.9 kB / 256.9 MB, free: 1.07 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.412e-06/0.01376, allocations: 0 / 256.9 MB, free: 1.07 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.002292/0.01605, allocations: 0.8982 MB / 257.8 MB, free: 108 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.01611, allocations: 55.41 kB / 257.9 MB, free: 40 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.01641, allocations: 266.6 kB / 258.2 MB, free: 15.76 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.01645, allocations: 33.7 kB / 258.2 MB, free: 15.72 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.01661, allocations: 191.1 kB / 258.4 MB, free: 15.53 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.985e-05/0.01671, allocations: 95.25 kB / 258.5 MB, free: 15.44 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.01685, allocations: 79.31 kB / 258.5 MB, free: 15.35 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002895/0.01714, allocations: 0.5079 MB / 259 MB, free: 14.83 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/0.01743, allocations: 122 kB / 259.2 MB, free: 14.7 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.01776, allocations: 189.3 kB / 259.4 MB, free: 14.5 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005127/0.01828, allocations: 251.1 kB / 259.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.01828, allocations: 0 / 259.6 MB, free: 14.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009268/0.01921, allocations: 436.4 kB / 260 MB, free: 13.78 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.01925, allocations: 29.7 kB / 260.1 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.01926, allocations: 8.062 kB / 260.1 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.01951, allocations: 75.67 kB / 260.1 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.01973, allocations: 47.92 kB / 260.2 MB, free: 13.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008101/0.02054, allocations: 0.8897 MB / 261.1 MB, free: 12.69 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.02076, allocations: 23.98 kB / 261.1 MB, free: 12.67 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.02079, allocations: 12 kB / 261.1 MB, free: 12.66 MB / 250.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 0.0001878/0.02098, allocations: 188.5 kB / 261.3 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.583e-05/0.02105, allocations: 39.78 kB / 261.3 MB, free: 12.42 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.815e-05/0.02113, allocations: 25.97 kB / 261.4 MB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.02114, allocations: 4 kB / 261.4 MB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.02114, allocations: 0 / 261.4 MB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.02115, allocations: 3.984 kB / 261.4 MB, free: 12.39 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.02235, allocations: 0.634 MB / 262 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.02236, allocations: 0 / 262 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.02256, allocations: 47.86 kB / 262 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002353/0.0228, allocations: 67.64 kB / 262.1 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.02282, allocations: 4 kB / 262.1 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007367/0.02356, allocations: 0.8858 MB / 263 MB, free: 10.67 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.02356, allocations: 4 kB / 263 MB, free: 10.66 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.02462, allocations: 0.5514 MB / 263.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.02472, allocations: 35.83 kB / 263.6 MB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.144e-05/0.02476, allocations: 8 kB / 263.6 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.02496, allocations: 19.92 kB / 263.6 MB, free: 10.02 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.02508, allocations: 39.92 kB / 263.7 MB, free: 9.984 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.0251, allocations: 8 kB / 263.7 MB, free: 9.977 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001812/0.02528, allocations: 187.4 kB / 263.8 MB, free: 9.793 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02528, allocations: 0 / 263.8 MB, free: 9.793 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000354/0.02564, allocations: 71.94 kB / 263.9 MB, free: 9.723 MB / 250.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.0002163/0.02585, allocations: 131.1 kB / 264 MB, free: 9.586 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007995/0.02665, allocations: 344.5 kB / 264.4 MB, free: 9.227 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.02666, allocations: 0 / 264.4 MB, free: 9.227 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003741/0.02703, allocations: 143.5 kB / 264.5 MB, free: 9.082 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004702/0.0275, allocations: 56.11 kB / 264.6 MB, free: 9.027 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.02885, allocations: 0.5721 MB / 265.1 MB, free: 8.426 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001633/0.02901, allocations: 129.6 kB / 265.3 MB, free: 8.277 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.02912, allocations: 25.95 kB / 265.3 MB, free: 8.254 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.47e-05/0.02919, allocations: 24.5 kB / 265.3 MB, free: 8.23 MB / 250.7 MB Notification: Performance of SimCode: time 7.91e-07/0.02919, allocations: 0 / 265.3 MB, free: 8.23 MB / 250.7 MB Notification: Performance of Templates: time 0.008977/0.03817, allocations: 3.622 MB / 268.9 MB, free: 4.633 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 4.420414402964525]