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.00183/0.00183, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.002411/0.002411, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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.534/1.534, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 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 0.001606/0.001606, allocations: 43.94 kB / 373.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1116, allocations: 53.35 MB / 426.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004193/0.1158, allocations: 2.331 MB / 429.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.1174, allocations: 0.8646 MB / 430 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.1175, allocations: 7.938 kB / 430 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.1178, allocations: 51.58 kB / 430.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002986/0.1181, allocations: 107.2 kB / 430.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002983/0.1184, allocations: 75.84 kB / 430.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.1187, allocations: 271.4 kB / 430.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.1189, allocations: 52.31 kB / 430.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.1192, allocations: 131.5 kB / 430.7 MB, free: 420 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.1194, allocations: 123.5 kB / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.157e-05/0.1194, allocations: 20 kB / 430.8 MB, free: 276 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.1196, allocations: 83.97 kB / 430.9 MB, free: 192 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.755e-05/0.1197, allocations: 51.83 kB / 430.9 MB, free: 140 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.1198, allocations: 123.3 kB / 431.1 MB, free: 16 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1943/0.314, allocations: 301.5 kB / 431.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3141, allocations: 3.312 kB / 431.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3141, allocations: 0 / 431.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.3141, allocations: 0.5625 kB / 431.4 MB, free: 8.387 MB / 350.1 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.0007988/0.3149, allocations: 0.5468 MB / 431.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.3149, allocations: 9.906 kB / 431.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.3151, allocations: 33.83 kB / 432 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000309/0.3154, allocations: 246.9 kB / 432.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.3154, allocations: 14.94 kB / 432.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.252e-05/0.3155, allocations: 25.08 kB / 432.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003692/0.3158, allocations: 213 kB / 432.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.3158, allocations: 8.453 kB / 432.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.3159, allocations: 8.938 kB / 432.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3159, allocations: 5.281 kB / 432.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003166/0.3162, allocations: 155.5 kB / 432.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009456/0.3171, allocations: 0.7758 MB / 433.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.3175, allocations: 143.4 kB / 433.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.3176, allocations: 66.19 kB / 433.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.3176, allocations: 2.531 kB / 433.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.354e-05/0.3176, allocations: 39.11 kB / 433.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.323e-06/0.3176, allocations: 3.469 kB / 433.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001683/0.3193, allocations: 0.9868 MB / 434.6 MB, free: 6.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.207e-05/0.3193, allocations: 58.69 kB / 434.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.3195, allocations: 218.8 kB / 434.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.3196, allocations: 26.7 kB / 434.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/0.3196, allocations: 145.3 kB / 435.1 MB, free: 6.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.426e-05/0.3197, allocations: 82.78 kB / 435.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-05/0.3197, allocations: 50.11 kB / 435.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.508e-05/0.3198, allocations: 335.1 kB / 435.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.3199, allocations: 67.8 kB / 435.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.3201, allocations: 113.1 kB / 435.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.3204, allocations: 156.5 kB / 435.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3204, allocations: 5.812 kB / 435.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004441/0.3208, allocations: 266.3 kB / 436.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.3208, allocations: 7.266 kB / 436.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3208, allocations: 1.125 kB / 436.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002019/0.321, allocations: 59.86 kB / 436.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.3212, allocations: 40.11 kB / 436.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.3226, allocations: 1.819 MB / 438 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001961/0.3228, allocations: 25.81 kB / 438.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.3228, allocations: 11.75 kB / 438.1 MB, free: 4.215 MB / 350.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 (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 9.601e-05/0.3229, allocations: 134.2 kB / 438.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.274e-05/0.323, allocations: 18.8 kB / 438.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.147e-05/0.323, allocations: 32.45 kB / 438.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.323, allocations: 3.141 kB / 438.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.323, allocations: 1.094 kB / 438.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.323, allocations: 3.094 kB / 438.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007772/0.3238, allocations: 0.6082 MB / 438.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3238, allocations: 2.219 kB / 438.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.324, allocations: 33.19 kB / 438.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001423/0.3241, allocations: 54.3 kB / 439 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.3242, allocations: 11.95 kB / 439 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.3254, allocations: 1.661 MB / 440.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3254, allocations: 3.375 kB / 440.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006049/0.326, allocations: 420.4 kB / 441.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.621e-05/0.326, allocations: 117.5 kB / 441.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.3261, allocations: 7.172 kB / 441.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.3263, allocations: 24.08 kB / 441.2 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.3264, allocations: 63.2 kB / 441.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.3265, allocations: 9.406 kB / 441.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.3266, allocations: 156.2 kB / 441.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3266, allocations: 5.125 kB / 441.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004029/0.327, allocations: 72.44 kB / 441.5 MB, free: 1.875 MB / 350.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 (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.001244/0.3282, allocations: 365.9 kB / 441.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005665/0.3288, allocations: 306.3 kB / 442.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3288, allocations: 0 / 442.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.3291, allocations: 223.3 kB / 442.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.3295, allocations: 50.98 kB / 442.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.3307, allocations: 0.6987 MB / 443.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001718/0.3309, allocations: 0.7411 MB / 443.9 MB, free: 256 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.892e-05/0.3309, allocations: 30.08 kB / 443.9 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.682e-05/0.331, allocations: 21.16 kB / 443.9 MB, free: 236 kB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.331, allocations: 0 / 443.9 MB, free: 236 kB / 350.1 MB Notification: Performance of Templates: time 0.009297/0.3403, allocations: 4.024 MB / 447.9 MB, free: 15.9 MB / 366.1 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.818363919854164]