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.00145/0.00145, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.001631/0.001631, allocations: 165.7 kB / 24.27 MB, free: 148 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.48/1.48, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.873e-06/1.873e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.68e-05/2.867e-05, allocations: 2.312 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004257/0.004285, allocations: 2.21 MB / 274.5 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.006178, allocations: 0.8216 MB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.006341, allocations: 8 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002628/0.006604, allocations: 51.52 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003585/0.006962, allocations: 115.1 kB / 275.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.007245, allocations: 83.81 kB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004526/0.007697, allocations: 299.3 kB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.007841, allocations: 44.48 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004172/0.008258, allocations: 191.6 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.008491, allocations: 103.7 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.154e-05/0.008542, allocations: 20 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.008724, allocations: 83.91 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.719e-05/0.008822, allocations: 55.81 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.008951, allocations: 79.81 kB / 276.4 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005302/0.009481, allocations: 326.9 kB / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.009485, allocations: 0 / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.009486, allocations: 0 / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.009494, allocations: 0 / 276.8 MB, free: 13.37 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.001168/0.01066, allocations: 0.5181 MB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.0107, allocations: 12.03 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000233/0.01093, allocations: 48.73 kB / 277.3 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.01131, allocations: 203 kB / 277.5 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.01134, allocations: 12.38 kB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.355e-05/0.0114, allocations: 20.31 kB / 277.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005178/0.01191, allocations: 227.8 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.01193, allocations: 192 / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.247e-05/0.01196, allocations: 12.38 kB / 277.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.01197, allocations: 7.938 kB / 277.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005568/0.01253, allocations: 175.9 kB / 278 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.01379, allocations: 0.5391 MB / 278.5 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006602/0.01445, allocations: 190.5 kB / 278.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.01472, allocations: 96.8 kB / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.01474, allocations: 4 kB / 278.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004137/0.01516, allocations: 161.6 kB / 279 MB, free: 11.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.513e-06/0.01516, allocations: 0 / 279 MB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.002741/0.0179, allocations: 0.9543 MB / 279.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.01796, allocations: 59.34 kB / 280 MB, free: 9.957 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/0.01824, allocations: 190.8 kB / 280.2 MB, free: 9.758 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.01828, allocations: 37.69 kB / 280.2 MB, free: 9.715 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.01841, allocations: 136.5 kB / 280.3 MB, free: 9.578 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.01851, allocations: 91.27 kB / 280.4 MB, free: 9.488 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.01863, allocations: 61.69 kB / 280.5 MB, free: 9.422 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.01881, allocations: 330.8 kB / 280.8 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003169/0.01913, allocations: 129.4 kB / 280.9 MB, free: 8.957 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/0.01947, allocations: 170.1 kB / 281.1 MB, free: 8.773 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005528/0.02002, allocations: 238.1 kB / 281.3 MB, free: 8.523 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.02002, allocations: 4 kB / 281.3 MB, free: 8.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001189/0.02121, allocations: 427.3 kB / 281.7 MB, free: 8.082 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.281e-05/0.02126, allocations: 29.7 kB / 281.8 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.02126, allocations: 3.938 kB / 281.8 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.02149, allocations: 56.83 kB / 281.8 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.02172, allocations: 51.91 kB / 281.9 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/0.02395, allocations: 1.68 MB / 283.6 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.02424, allocations: 35.89 kB / 283.6 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.93e-05/0.02427, allocations: 8 kB / 283.6 MB, free: 6.109 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.0001878/0.02446, allocations: 145.8 kB / 283.7 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.872e-05/0.02453, allocations: 31.86 kB / 283.8 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.227e-05/0.0246, allocations: 30.64 kB / 283.8 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.0246, allocations: 4 kB / 283.8 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.02461, allocations: 0 / 283.8 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.02461, allocations: 0 / 283.8 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.02589, allocations: 0.601 MB / 284.4 MB, free: 5.246 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.0259, allocations: 7.875 kB / 284.4 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002326/0.02613, allocations: 39.97 kB / 284.5 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001633/0.02629, allocations: 52.83 kB / 284.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.02632, allocations: 8 kB / 284.5 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/0.02818, allocations: 1.515 MB / 286 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.02818, allocations: 4 kB / 286 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.02933, allocations: 0.5126 MB / 286.6 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.02944, allocations: 47.86 kB / 286.6 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/0.02948, allocations: 12.06 kB / 286.6 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.02973, allocations: 23.97 kB / 286.6 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.02993, allocations: 79.8 kB / 286.7 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.537e-05/0.02996, allocations: 8 kB / 286.7 MB, free: 2.816 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001746/0.03013, allocations: 143.2 kB / 286.9 MB, free: 2.676 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03013, allocations: 0 / 286.9 MB, free: 2.676 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004424/0.03057, allocations: 79.98 kB / 286.9 MB, free: 2.598 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.001754/0.03233, allocations: 392.2 kB / 287.3 MB, free: 2.359 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.0335, allocations: 467.5 kB / 287.8 MB, free: 1.871 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.0335, allocations: 0 / 287.8 MB, free: 1.871 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005736/0.03408, allocations: 262.3 kB / 288 MB, free: 1.602 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005231/0.0346, allocations: 55.69 kB / 288.1 MB, free: 1.551 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.03625, allocations: 0.5752 MB / 288.7 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.03645, allocations: 150.1 kB / 288.8 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.0366, allocations: 33.92 kB / 288.8 MB, free: 0.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.695e-05/0.03669, allocations: 24.48 kB / 288.9 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.0367, allocations: 4 kB / 288.9 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of Templates: time 0.1228/0.1595, allocations: 4.529 MB / 293.4 MB, free: 27.62 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.472388194990344]