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.001529/0.001529, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001602/0.001602, allocations: 165.5 kB / 25.33 MB, free: 8.594 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 0.915/0.915, allocations: 158.6 MB / 187.2 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 179] 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.794e-06/1.794e-06, allocations: 0 / 251 MB, free: 7.527 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.113e-05/2.292e-05, allocations: 2.312 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002467/0.00249, allocations: 2.187 MB / 253.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.003573, allocations: 0.7409 MB / 254 MB, free: 4.57 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.003698, allocations: 0 / 254 MB, free: 4.57 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.003888, allocations: 31.66 kB / 254 MB, free: 4.539 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001663/0.004055, allocations: 79.34 kB / 254.1 MB, free: 4.461 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.004422, allocations: 111.7 kB / 254.2 MB, free: 4.352 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.004705, allocations: 279.4 kB / 254.4 MB, free: 4.078 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.004821, allocations: 44.47 kB / 254.5 MB, free: 4.035 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002174/0.005039, allocations: 167.6 kB / 254.7 MB, free: 3.871 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.005202, allocations: 99.73 kB / 254.8 MB, free: 3.773 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.005237, allocations: 20 kB / 254.8 MB, free: 3.754 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.005362, allocations: 75.89 kB / 254.8 MB, free: 3.68 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.813e-05/0.00543, allocations: 55.75 kB / 254.9 MB, free: 3.625 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.75e-05/0.005507, allocations: 83.81 kB / 255 MB, free: 3.543 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.005789, allocations: 219.3 kB / 255.2 MB, free: 3.328 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.005791, allocations: 0 / 255.2 MB, free: 3.328 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.005793, allocations: 0 / 255.2 MB, free: 3.328 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.005797, allocations: 0 / 255.2 MB, free: 3.328 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.0007221/0.006519, allocations: 0.5792 MB / 255.8 MB, free: 2.707 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.006559, allocations: 15.98 kB / 255.8 MB, free: 2.691 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.565e-05/0.006635, allocations: 44.78 kB / 255.8 MB, free: 2.648 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002083/0.006843, allocations: 180.2 kB / 256 MB, free: 2.445 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.006868, allocations: 12.38 kB / 256 MB, free: 2.434 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/0.006901, allocations: 24.36 kB / 256 MB, free: 2.41 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.007198, allocations: 206.1 kB / 256.2 MB, free: 2.191 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.007211, allocations: 4.188 kB / 256.3 MB, free: 2.188 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.007226, allocations: 4.375 kB / 256.3 MB, free: 2.184 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.007236, allocations: 7.938 kB / 256.3 MB, free: 2.176 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.007389, allocations: 103.8 kB / 256.4 MB, free: 2.074 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006599/0.008049, allocations: 0.6348 MB / 257 MB, free: 1.398 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.008316, allocations: 142.9 kB / 257.1 MB, free: 1.246 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.505e-05/0.008391, allocations: 51.67 kB / 257.2 MB, free: 1.191 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.008409, allocations: 7.984 kB / 257.2 MB, free: 1.184 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001672/0.008577, allocations: 121.3 kB / 257.3 MB, free: 1.051 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.874e-06/0.008579, allocations: 0 / 257.3 MB, free: 1.051 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.00109/0.009669, allocations: 0.7345 MB / 258.1 MB, free: 256 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.533e-05/0.009704, allocations: 55.41 kB / 258.1 MB, free: 188 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.009852, allocations: 242.6 kB / 258.3 MB, free: 15.93 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.009871, allocations: 33.7 kB / 258.4 MB, free: 15.89 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.126e-05/0.009942, allocations: 179.2 kB / 258.6 MB, free: 15.71 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.463e-05/0.009997, allocations: 99.2 kB / 258.6 MB, free: 15.61 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.144e-05/0.01007, allocations: 63.34 kB / 258.7 MB, free: 15.54 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.01017, allocations: 0.504 MB / 259.2 MB, free: 15.03 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.01028, allocations: 82 kB / 259.3 MB, free: 14.94 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.01039, allocations: 137.3 kB / 259.4 MB, free: 14.78 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.01057, allocations: 179.1 kB / 259.6 MB, free: 14.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.01057, allocations: 0 / 259.6 MB, free: 14.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003965/0.01097, allocations: 352.5 kB / 259.9 MB, free: 14.22 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.011, allocations: 37.7 kB / 260 MB, free: 14.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.011, allocations: 0 / 260 MB, free: 14.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.01117, allocations: 67.64 kB / 260 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.01129, allocations: 47.97 kB / 260.1 MB, free: 14.06 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003619/0.01165, allocations: 0.8507 MB / 260.9 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.01176, allocations: 27.97 kB / 261 MB, free: 13.15 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.01178, allocations: 8 kB / 261 MB, free: 13.14 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 9.255e-05/0.01187, allocations: 176.5 kB / 261.2 MB, free: 12.96 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.0119, allocations: 31.83 kB / 261.2 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.01194, allocations: 29.95 kB / 261.2 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.01194, allocations: 4 kB / 261.2 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.01194, allocations: 0 / 261.2 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.01195, allocations: 0 / 261.2 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005462/0.01249, allocations: 0.5559 MB / 261.8 MB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.0125, allocations: 0 / 261.8 MB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.01261, allocations: 39.86 kB / 261.8 MB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000104/0.01271, allocations: 63.64 kB / 261.9 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.01273, allocations: 4 kB / 261.9 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003184/0.01305, allocations: 0.8546 MB / 262.7 MB, free: 11.29 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.01305, allocations: 0 / 262.7 MB, free: 11.29 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004108/0.01346, allocations: 440.7 kB / 263.2 MB, free: 10.84 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.552e-05/0.01351, allocations: 35.83 kB / 263.2 MB, free: 10.8 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.01354, allocations: 11.98 kB / 263.2 MB, free: 10.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.684e-05/0.01364, allocations: 23.95 kB / 263.2 MB, free: 10.77 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.01371, allocations: 35.94 kB / 263.3 MB, free: 10.73 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.01372, allocations: 7.984 kB / 263.3 MB, free: 10.72 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.623e-05/0.0138, allocations: 171.4 kB / 263.4 MB, free: 10.55 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0138, allocations: 0 / 263.4 MB, free: 10.55 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002369/0.01404, allocations: 71.94 kB / 263.5 MB, free: 10.48 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.0001541/0.01419, allocations: 123.3 kB / 263.6 MB, free: 10.36 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.01455, allocations: 264.6 kB / 263.9 MB, free: 10.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01455, allocations: 4 kB / 263.9 MB, free: 10.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.01469, allocations: 107.5 kB / 264 MB, free: 9.961 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.01496, allocations: 63.42 kB / 264.1 MB, free: 9.902 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009665/0.01593, allocations: 0.5492 MB / 264.6 MB, free: 9.32 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.228e-05/0.01598, allocations: 84.31 kB / 264.7 MB, free: 9.219 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.838e-05/0.01605, allocations: 21.95 kB / 264.7 MB, free: 9.195 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.75e-05/0.0161, allocations: 24.5 kB / 264.7 MB, free: 9.172 MB / 250.7 MB Notification: Performance of SimCode: time 8.62e-07/0.0161, allocations: 0 / 264.7 MB, free: 9.172 MB / 250.7 MB Notification: Performance of Templates: time 0.005834/0.02193, allocations: 3.882 MB / 268.6 MB, free: 5.312 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.767816575244069]