Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009681/0.0009681, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001474/0.001474, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.039/1.039, allocations: 177.1 MB / 205 MB, free: 5.289 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 273 MB, free: 1.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.409e-05/2.581e-05, allocations: 2.312 kB / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002857/0.002882, allocations: 2.309 MB / 275.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.004145, allocations: 0.8528 MB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.004273, allocations: 7.938 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002428/0.004516, allocations: 43.56 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.004792, allocations: 119.1 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.005027, allocations: 95.75 kB / 276.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.005326, allocations: 299.3 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.005447, allocations: 35.95 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/0.005719, allocations: 179.6 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.005894, allocations: 115.7 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.305e-05/0.005927, allocations: 20 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.006064, allocations: 91.84 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.976e-05/0.006134, allocations: 51.81 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.823e-05/0.006212, allocations: 79.81 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.006523, allocations: 255.1 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.006526, allocations: 0 / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.006527, allocations: 0 / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.006533, allocations: 3.938 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0007585/0.007291, allocations: 0.5946 MB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.007327, allocations: 12.03 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.007481, allocations: 56.72 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.007738, allocations: 214.5 kB / 278.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.007763, allocations: 12.38 kB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.007799, allocations: 24.36 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002816/0.008081, allocations: 189.3 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.008095, allocations: 192 / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.008113, allocations: 8.375 kB / 278.6 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.008124, allocations: 7.938 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.008277, allocations: 91.92 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009515/0.009228, allocations: 0.6153 MB / 279.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002837/0.009512, allocations: 138.9 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.463e-05/0.009596, allocations: 51.66 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.009615, allocations: 4 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001735/0.009789, allocations: 125.6 kB / 279.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.743e-06/0.009791, allocations: 4 kB / 279.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.001132/0.01092, allocations: 0.7375 MB / 280.4 MB, free: 9.773 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.01095, allocations: 55.41 kB / 280.4 MB, free: 9.707 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.01111, allocations: 253.5 kB / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.01113, allocations: 29.7 kB / 280.7 MB, free: 9.406 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.065e-05/0.0112, allocations: 179.3 kB / 280.9 MB, free: 9.227 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.01125, allocations: 91.22 kB / 281 MB, free: 9.137 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.459e-05/0.01133, allocations: 67.31 kB / 281 MB, free: 9.062 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.01144, allocations: 0.504 MB / 281.5 MB, free: 8.547 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.01154, allocations: 81.42 kB / 281.6 MB, free: 8.461 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.01165, allocations: 128.3 kB / 281.7 MB, free: 8.312 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.01183, allocations: 173.4 kB / 281.9 MB, free: 8.121 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01183, allocations: 0 / 281.9 MB, free: 8.121 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003852/0.01221, allocations: 330.2 kB / 282.2 MB, free: 7.777 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.01224, allocations: 33.7 kB / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.01225, allocations: 0 / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000144/0.01239, allocations: 55.7 kB / 282.3 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.01251, allocations: 55.84 kB / 282.4 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.0137, allocations: 2.141 MB / 284.5 MB, free: 5.367 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.01383, allocations: 28 kB / 284.5 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.01385, allocations: 8 kB / 284.5 MB, free: 5.332 MB / 266.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 (31): * Single equations (assignments): 29 * 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.0001046/0.01395, allocations: 180.5 kB / 284.7 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.982e-05/0.01399, allocations: 31.86 kB / 284.7 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.01402, allocations: 30.64 kB / 284.8 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.01402, allocations: 4 kB / 284.8 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.01403, allocations: 0 / 284.8 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.01403, allocations: 0 / 284.8 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005538/0.01458, allocations: 0.564 MB / 285.3 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.01459, allocations: 7.938 kB / 285.4 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.0147, allocations: 35.97 kB / 285.4 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.043e-05/0.01479, allocations: 51.62 kB / 285.4 MB, free: 4.371 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.01481, allocations: 8 kB / 285.4 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.01601, allocations: 1.908 MB / 287.4 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01601, allocations: 0 / 287.4 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000418/0.01642, allocations: 440.4 kB / 287.8 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.961e-05/0.01648, allocations: 35.86 kB / 287.8 MB, free: 1.844 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.01651, allocations: 12 kB / 287.8 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-05/0.01661, allocations: 19.98 kB / 287.8 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.01674, allocations: 71.86 kB / 287.9 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.01675, allocations: 12.02 kB / 287.9 MB, free: 1.73 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.576e-05/0.01684, allocations: 177 kB / 288.1 MB, free: 1.559 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01684, allocations: 0 / 288.1 MB, free: 1.559 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002747/0.01711, allocations: 72 kB / 288.2 MB, free: 1.488 MB / 266.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 (21): * Single equations (assignments): 18 * 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.0007577/0.01787, allocations: 357.4 kB / 288.5 MB, free: 1.254 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004823/0.01835, allocations: 439.4 kB / 289 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.01835, allocations: 3.938 kB / 289 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002176/0.01857, allocations: 293.7 kB / 289.2 MB, free: 484 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.01887, allocations: 56.7 kB / 289.3 MB, free: 428 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09609/0.115, allocations: 0.5599 MB / 289.9 MB, free: 24.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.778e-05/0.115, allocations: 91.62 kB / 289.9 MB, free: 24.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.1151, allocations: 19.77 kB / 290 MB, free: 24.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.963e-05/0.1152, allocations: 31.53 kB / 290 MB, free: 24.9 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.1152, allocations: 1.562 kB / 290 MB, free: 24.9 MB / 266.7 MB Notification: Performance of Templates: time 0.007172/0.1223, allocations: 4.874 MB / 294.9 MB, free: 24.57 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.8955782260745764]