Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 111.5 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000993/0.000993, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 47.94 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2829, allocations: 49.42 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003947/0.2869, allocations: 2.226 MB / 402.9 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.2887, allocations: 0.6855 MB / 403.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002154/0.2889, allocations: 4 kB / 403.6 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002353/0.2892, allocations: 35.66 kB / 403.7 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002625/0.2895, allocations: 71.41 kB / 403.7 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004128/0.2899, allocations: 103.8 kB / 403.8 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003594/0.2903, allocations: 259.4 kB / 404.1 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.2905, allocations: 62.7 kB / 404.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.2907, allocations: 111.6 kB / 404.2 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.2909, allocations: 119.5 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.291, allocations: 20 kB / 404.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.2911, allocations: 71.92 kB / 404.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.844e-05/0.2912, allocations: 47.84 kB / 404.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.2913, allocations: 111.5 kB / 404.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.2917, allocations: 280.2 kB / 404.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2917, allocations: 3.938 kB / 404.9 MB, free: 4.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.2917, allocations: 0 / 404.9 MB, free: 4.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.2918, allocations: 4 kB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.000872/0.2926, allocations: 0.5108 MB / 405.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2927, allocations: 12.03 kB / 405.4 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.2928, allocations: 24.66 kB / 405.4 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.2931, allocations: 231.9 kB / 405.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.2931, allocations: 12.81 kB / 405.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.602e-05/0.2932, allocations: 20.38 kB / 405.7 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004029/0.2936, allocations: 234 kB / 405.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.2936, allocations: 3.906 kB / 405.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.2936, allocations: 12 kB / 405.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.2936, allocations: 4 kB / 405.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000328/0.294, allocations: 161 kB / 406.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.2951, allocations: 0.7797 MB / 406.9 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.2955, allocations: 126.5 kB / 407 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.2957, allocations: 72.77 kB / 407.1 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.2957, allocations: 0 / 407.1 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.2957, allocations: 38.56 kB / 407.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.052e-06/0.2957, allocations: 0 / 407.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001839/0.2976, allocations: 0.9836 MB / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.2976, allocations: 59.41 kB / 408.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.2978, allocations: 207.8 kB / 408.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.2978, allocations: 33.7 kB / 408.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.026e-05/0.2979, allocations: 136.2 kB / 408.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.925e-05/0.298, allocations: 74.98 kB / 408.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.1e-05/0.2981, allocations: 49.7 kB / 408.6 MB, free: 0.582 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2982, allocations: 338.7 kB / 409 MB, free: 248 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.2984, allocations: 87.95 kB / 409.1 MB, free: 160 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.2985, allocations: 112.1 kB / 409.2 MB, free: 32 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.2988, allocations: 169.4 kB / 409.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2989, allocations: 7.938 kB / 409.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004895/0.2994, allocations: 292.4 kB / 409.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.2994, allocations: 4 kB / 409.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2994, allocations: 0 / 409.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002417/0.2996, allocations: 72.81 kB / 409.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.2998, allocations: 39.92 kB / 409.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004767/0.3003, allocations: 0.6226 MB / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.3005, allocations: 20.02 kB / 410.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.3005, allocations: 12 kB / 410.4 MB, free: 14.76 MB / 334.1 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 (26): * Single equations (assignments): 25 * 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.0001264/0.3006, allocations: 143.2 kB / 410.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.3007, allocations: 19.88 kB / 410.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.3008, allocations: 25.88 kB / 410.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3008, allocations: 11.97 kB / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3008, allocations: 0 / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3008, allocations: 3.984 kB / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008311/0.3016, allocations: 0.5892 MB / 411.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3016, allocations: 4.062 kB / 411.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.3018, allocations: 31.98 kB / 411.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.302, allocations: 68.81 kB / 411.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.302, allocations: 11.94 kB / 411.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004298/0.3024, allocations: 0.6108 MB / 411.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3025, allocations: 8.094 kB / 411.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005648/0.303, allocations: 409.6 kB / 412.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.042e-05/0.3031, allocations: 108.9 kB / 412.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.3032, allocations: 12 kB / 412.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.3034, allocations: 23.97 kB / 412.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.5e-05/0.3034, allocations: 19.97 kB / 412.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.3035, allocations: 8 kB / 412.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001246/0.3036, allocations: 144.5 kB / 412.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3036, allocations: 0 / 412.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.3039, allocations: 71.92 kB / 412.7 MB, free: 12.3 MB / 334.1 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 (14): * Single equations (assignments): 13 * 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.0002124/0.3042, allocations: 135.1 kB / 412.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000496/0.3047, allocations: 199.7 kB / 413 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3047, allocations: 0 / 413 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002349/0.3049, allocations: 103.9 kB / 413.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.3054, allocations: 40.31 kB / 413.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.3067, allocations: 0.6647 MB / 413.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.307, allocations: 0.7401 MB / 414.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.34e-05/0.3071, allocations: 21.94 kB / 414.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.039e-05/0.3071, allocations: 19.44 kB / 414.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3071, allocations: 0 / 414.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of Templates: time 0.006846/0.314, allocations: 3.224 MB / 417.8 MB, free: 7.121 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches