Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.002058/0.002058, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002393/0.002393, allocations: 161.7 kB / 24.27 MB, free: 172 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.51/1.51, allocations: 177.1 MB / 204.6 MB, free: 5.602 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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.969e-05/3.139e-05, allocations: 6.312 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.006826/0.006858, allocations: 2.248 MB / 274.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002706/0.009564, allocations: 0.8062 MB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002494/0.009814, allocations: 7.938 kB / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004151/0.01023, allocations: 55.45 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005786/0.01081, allocations: 95.31 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004172/0.01122, allocations: 95.75 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007248/0.01195, allocations: 287.2 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002215/0.01217, allocations: 44.55 kB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005716/0.01274, allocations: 175.5 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.01309, allocations: 99.75 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.802e-05/0.01317, allocations: 20 kB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002598/0.01343, allocations: 75.92 kB / 276.3 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.01355, allocations: 55.81 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.01372, allocations: 83.75 kB / 276.4 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007293/0.01445, allocations: 315 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.01446, allocations: 4 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01446, allocations: 3.938 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.01447, allocations: 0 / 276.7 MB, free: 13.38 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.00137/0.01584, allocations: 485.2 kB / 277.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.01589, allocations: 8.031 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003261/0.01621, allocations: 48.78 kB / 277.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000619/0.01683, allocations: 197.4 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.01687, allocations: 12.75 kB / 277.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.572e-05/0.01696, allocations: 20.38 kB / 277.5 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006452/0.0176, allocations: 215 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.01763, allocations: 4.141 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.276e-05/0.01766, allocations: 4.375 kB / 277.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.01768, allocations: 11.94 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005564/0.01824, allocations: 155.2 kB / 277.9 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.02009, allocations: 0.6436 MB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005816/0.02067, allocations: 138.7 kB / 278.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002311/0.0209, allocations: 60.84 kB / 278.7 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.02093, allocations: 7.984 kB / 278.7 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/0.02098, allocations: 38.55 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 2.415e-06/0.02098, allocations: 0 / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.003208/0.02419, allocations: 0.7603 MB / 279.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.02425, allocations: 59.34 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.02462, allocations: 192.8 kB / 279.8 MB, free: 10.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.304e-05/0.02466, allocations: 29.7 kB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/0.02488, allocations: 148.4 kB / 279.9 MB, free: 9.957 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.02499, allocations: 83.25 kB / 280 MB, free: 9.875 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/0.02513, allocations: 49.7 kB / 280.1 MB, free: 9.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002318/0.02536, allocations: 326.8 kB / 280.4 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.02557, allocations: 71.95 kB / 280.5 MB, free: 9.422 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.0258, allocations: 107.3 kB / 280.6 MB, free: 9.305 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.02615, allocations: 158 kB / 280.7 MB, free: 9.141 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.02615, allocations: 4 kB / 280.7 MB, free: 9.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006106/0.02676, allocations: 274.9 kB / 281 MB, free: 8.859 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.02679, allocations: 10.97 kB / 281 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.02679, allocations: 0 / 281 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000234/0.02703, allocations: 64.75 kB / 281.1 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.02719, allocations: 35.92 kB / 281.1 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00221/0.0294, allocations: 1.684 MB / 282.8 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.0296, allocations: 27.95 kB / 282.8 MB, free: 6.938 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.02963, allocations: 4 kB / 282.8 MB, free: 6.934 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.0001688/0.0298, allocations: 145.8 kB / 283 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.945e-05/0.02987, allocations: 19.91 kB / 283 MB, free: 6.762 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.858e-05/0.02993, allocations: 30.03 kB / 283 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.02993, allocations: 4 kB / 283 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.02993, allocations: 0 / 283 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.02994, allocations: 3.984 kB / 283 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009929/0.03093, allocations: 0.5151 MB / 283.5 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.03094, allocations: 4 kB / 283.5 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.03113, allocations: 35.97 kB / 283.6 MB, free: 6.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001674/0.0313, allocations: 52.89 kB / 283.6 MB, free: 6.066 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.03131, allocations: 8 kB / 283.6 MB, free: 6.059 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/0.03317, allocations: 1.531 MB / 285.2 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/0.03318, allocations: 11.88 kB / 285.2 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007941/0.03398, allocations: 437.8 kB / 285.6 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.019e-05/0.03407, allocations: 35.86 kB / 285.6 MB, free: 3.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.0341, allocations: 4 kB / 285.6 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.03429, allocations: 19.98 kB / 285.7 MB, free: 3.906 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.03447, allocations: 71.88 kB / 285.7 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.03449, allocations: 4 kB / 285.7 MB, free: 3.832 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001854/0.03467, allocations: 151.2 kB / 285.9 MB, free: 3.684 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03467, allocations: 3.938 kB / 285.9 MB, free: 3.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004356/0.03511, allocations: 72 kB / 286 MB, free: 3.609 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001712/0.03682, allocations: 392.8 kB / 286.3 MB, free: 3.375 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007212/0.03754, allocations: 325.4 kB / 286.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.03754, allocations: 0 / 286.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003859/0.03793, allocations: 226.4 kB / 286.9 MB, free: 2.812 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.03837, allocations: 39.97 kB / 286.9 MB, free: 2.773 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.03971, allocations: 0.5963 MB / 287.5 MB, free: 2.141 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/0.03987, allocations: 134.2 kB / 287.6 MB, free: 1.992 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.03998, allocations: 33.92 kB / 287.7 MB, free: 1.953 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.729e-05/0.04005, allocations: 32.36 kB / 287.7 MB, free: 1.922 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.04005, allocations: 0 / 287.7 MB, free: 1.922 MB / 266.7 MB Notification: Performance of Templates: time 0.1136/0.1537, allocations: 3.761 MB / 291.5 MB, free: 27.65 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.4646168880863115]