Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001699/0.001699, allocations: 160.3 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9818/0.9818, allocations: 177 MB / 205.2 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 273 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.651e-05/2.851e-05, allocations: 2.312 kB / 273 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003771/0.0038, allocations: 2.355 MB / 275.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.005174, allocations: 0.8334 MB / 276.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.005306, allocations: 7.938 kB / 276.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.005576, allocations: 47.53 kB / 276.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003025/0.005878, allocations: 111.2 kB / 276.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.006107, allocations: 87.75 kB / 276.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003237/0.00643, allocations: 287.3 kB / 276.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.006587, allocations: 55.67 kB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.006885, allocations: 175.5 kB / 276.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.007087, allocations: 99.75 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.007126, allocations: 20 kB / 277 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001541/0.00728, allocations: 75.92 kB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.694e-05/0.007357, allocations: 59.75 kB / 277.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.25e-05/0.007449, allocations: 79.81 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003759/0.007825, allocations: 239.1 kB / 277.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.007828, allocations: 4 kB / 277.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.007829, allocations: 0 / 277.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.007835, allocations: 0 / 277.5 MB, free: 13.24 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.0007811/0.008616, allocations: 0.5621 MB / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.008658, allocations: 11.98 kB / 278.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.008846, allocations: 52.72 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.009166, allocations: 208.9 kB / 278.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.009202, allocations: 16.75 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.009248, allocations: 32.33 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.009581, allocations: 176.6 kB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.009598, allocations: 4.188 kB / 278.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.009622, allocations: 8.375 kB / 278.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.009634, allocations: 7.938 kB / 278.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.009852, allocations: 95.23 kB / 278.6 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.01087, allocations: 0.7081 MB / 279.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.0112, allocations: 111.9 kB / 279.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.607e-05/0.01129, allocations: 51.84 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.01131, allocations: 4 kB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.01134, allocations: 37.33 kB / 279.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 1.984e-06/0.01134, allocations: 3.938 kB / 279.6 MB, free: 11.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001429/0.01277, allocations: 0.6465 MB / 280.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.01281, allocations: 63.34 kB / 280.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.01303, allocations: 251.1 kB / 280.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.01305, allocations: 29.7 kB / 280.5 MB, free: 9.934 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.01315, allocations: 187.2 kB / 280.7 MB, free: 9.746 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.227e-05/0.01322, allocations: 71.39 kB / 280.8 MB, free: 9.676 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.01331, allocations: 59.31 kB / 280.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.01346, allocations: 0.5001 MB / 281.4 MB, free: 9.098 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.01356, allocations: 39.97 kB / 281.4 MB, free: 9.059 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.01368, allocations: 86.7 kB / 281.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.0139, allocations: 134.6 kB / 281.6 MB, free: 8.809 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.0139, allocations: 0 / 281.6 MB, free: 8.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000386/0.01428, allocations: 209.1 kB / 281.8 MB, free: 8.594 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.0143, allocations: 7.984 kB / 281.8 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.01431, allocations: 0 / 281.8 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002047/0.01451, allocations: 51.59 kB / 281.9 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.01465, allocations: 39.91 kB / 281.9 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/0.01645, allocations: 2.165 MB / 284.1 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.01658, allocations: 19.92 kB / 284.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.0166, allocations: 8 kB / 284.1 MB, free: 6.184 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.0001159/0.01671, allocations: 168.5 kB / 284.3 MB, free: 6.008 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.318e-05/0.01678, allocations: 27.94 kB / 284.3 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.356e-05/0.01682, allocations: 25.95 kB / 284.3 MB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.01683, allocations: 8.031 kB / 284.3 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.01683, allocations: 0 / 284.3 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.738e-06/0.01683, allocations: 0 / 284.3 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007252/0.01756, allocations: 0.5277 MB / 284.9 MB, free: 5.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.01756, allocations: 0 / 284.9 MB, free: 5.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.01771, allocations: 27.98 kB / 284.9 MB, free: 5.328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001391/0.01785, allocations: 51.72 kB / 284.9 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.01787, allocations: 7.984 kB / 284.9 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.01926, allocations: 1.924 MB / 286.9 MB, free: 3.219 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.01926, allocations: 3.938 kB / 286.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005171/0.01978, allocations: 402.6 kB / 287.3 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.41e-05/0.01985, allocations: 39.81 kB / 287.3 MB, free: 2.754 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.01988, allocations: 11.94 kB / 287.3 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.02001, allocations: 11.98 kB / 287.3 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.02017, allocations: 59.88 kB / 287.4 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.02018, allocations: 8 kB / 287.4 MB, free: 2.664 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001286/0.02031, allocations: 175 kB / 287.6 MB, free: 2.492 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02031, allocations: 0 / 287.6 MB, free: 2.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004518/0.02076, allocations: 71.94 kB / 287.6 MB, free: 2.422 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.001003/0.02177, allocations: 338.8 kB / 288 MB, free: 2.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005303/0.0223, allocations: 336.4 kB / 288.3 MB, free: 1.832 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.0223, allocations: 0 / 288.3 MB, free: 1.832 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002665/0.02256, allocations: 269.6 kB / 288.6 MB, free: 1.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004204/0.02299, allocations: 43.97 kB / 288.6 MB, free: 1.504 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.02432, allocations: 0.5758 MB / 289.2 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.533e-05/0.02439, allocations: 92.22 kB / 289.3 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.845e-05/0.02448, allocations: 21.94 kB / 289.3 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.362e-05/0.02455, allocations: 28.48 kB / 289.3 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.02455, allocations: 0 / 289.3 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of Templates: time 0.005917/0.03047, allocations: 3.827 MB / 293.1 MB, free: 12.95 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.92851280211471]