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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 191.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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=2000,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=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 43.92 kB / 370.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2617, allocations: 52.18 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003593/0.2653, allocations: 2.134 MB / 425.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2666, allocations: 0.6467 MB / 425.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.2667, allocations: 7.938 kB / 425.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.2669, allocations: 27.72 kB / 425.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.267, allocations: 75.41 kB / 425.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003348/0.2674, allocations: 103.8 kB / 426 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003353/0.2677, allocations: 259.4 kB / 426.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.2678, allocations: 44.5 kB / 426.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.268, allocations: 111.6 kB / 426.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002143/0.2682, allocations: 107.5 kB / 426.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.2683, allocations: 20 kB / 426.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.2684, allocations: 71.94 kB / 426.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.208e-05/0.2685, allocations: 55.77 kB / 426.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.2686, allocations: 91.59 kB / 426.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003892/0.269, allocations: 273.2 kB / 427.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.269, allocations: 0 / 427.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.269, allocations: 4 kB / 427.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.269, allocations: 0 / 427.1 MB, free: 10.48 MB / 334.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.000819/0.2698, allocations: 453.6 kB / 427.5 MB, free: 10 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.2699, allocations: 12.03 kB / 427.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/0.2699, allocations: 28.73 kB / 427.5 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.2703, allocations: 190 kB / 427.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.2703, allocations: 12.81 kB / 427.7 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.943e-05/0.2704, allocations: 24.38 kB / 427.8 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.2708, allocations: 218 kB / 428 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.2708, allocations: 4 kB / 428 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.2708, allocations: 8 kB / 428 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2708, allocations: 4 kB / 428 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003499/0.2712, allocations: 173 kB / 428.2 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2724, allocations: 0.6297 MB / 428.8 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003584/0.2727, allocations: 126.5 kB / 428.9 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.2729, allocations: 64.83 kB / 429 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.2729, allocations: 4 kB / 429 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.2729, allocations: 38.5 kB / 429 MB, free: 8.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.343e-06/0.2729, allocations: 0 / 429 MB, free: 8.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.001828/0.2747, allocations: 0.7588 MB / 429.8 MB, free: 7.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.2748, allocations: 59.34 kB / 429.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.275, allocations: 190.7 kB / 430 MB, free: 7.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.2751, allocations: 29.7 kB / 430.1 MB, free: 7.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.2752, allocations: 144.4 kB / 430.2 MB, free: 7.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.262e-05/0.2753, allocations: 83.3 kB / 430.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.416e-05/0.2754, allocations: 53.66 kB / 430.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.2755, allocations: 334.8 kB / 430.7 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.2757, allocations: 75.95 kB / 430.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.2759, allocations: 117.2 kB / 430.8 MB, free: 6.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003183/0.2763, allocations: 169.9 kB / 431 MB, free: 6.266 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2763, allocations: 4 kB / 431 MB, free: 6.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005258/0.2768, allocations: 280.6 kB / 431.3 MB, free: 5.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2768, allocations: 4 kB / 431.3 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.2768, allocations: 8 kB / 431.3 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.277, allocations: 68.81 kB / 431.4 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.2772, allocations: 35.92 kB / 431.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005857/0.2778, allocations: 0.6343 MB / 432 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.278, allocations: 23.92 kB / 432.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.278, allocations: 4 kB / 432.1 MB, free: 5.176 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.0001412/0.2781, allocations: 137.8 kB / 432.2 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.2782, allocations: 15.91 kB / 432.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.302e-05/0.2782, allocations: 21.81 kB / 432.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.2783, allocations: 4 kB / 432.2 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.2783, allocations: 11.94 kB / 432.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.2783, allocations: 3.984 kB / 432.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008685/0.2791, allocations: 0.5043 MB / 432.8 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2791, allocations: 0 / 432.8 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.2793, allocations: 31.92 kB / 432.8 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001767/0.2795, allocations: 64.86 kB / 432.9 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.2795, allocations: 16.05 kB / 432.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005567/0.2801, allocations: 0.6109 MB / 433.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.2801, allocations: 3.938 kB / 433.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006587/0.2807, allocations: 412.5 kB / 433.9 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.63e-05/0.2808, allocations: 39.86 kB / 433.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.484e-05/0.2808, allocations: 8 kB / 433.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.281, allocations: 20.05 kB / 434 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.531e-05/0.2811, allocations: 23.95 kB / 434 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.2811, allocations: 11.98 kB / 434 MB, free: 3.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001381/0.2812, allocations: 135.8 kB / 434.1 MB, free: 3.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2812, allocations: 3.938 kB / 434.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003424/0.2816, allocations: 64 kB / 434.2 MB, free: 2.945 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.0001892/0.2818, allocations: 119.3 kB / 434.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004998/0.2823, allocations: 191.8 kB / 434.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2823, allocations: 0 / 434.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.2825, allocations: 99.88 kB / 434.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.2829, allocations: 35.91 kB / 434.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.2843, allocations: 0.6694 MB / 435.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001399/0.2845, allocations: 129.2 kB / 435.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.427e-05/0.2845, allocations: 17.95 kB / 435.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.585e-05/0.2846, allocations: 15.44 kB / 435.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2846, allocations: 0 / 435.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of Templates: time 0.007549/0.2921, allocations: 3.103 MB / 438.6 MB, free: 14.56 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.434372907504439]