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.0009902/0.0009902, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001055/0.001055, allocations: 161 kB / 24.56 MB, free: 16 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 0.9501/0.9501, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] 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.202e-06/1.202e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.628e-05/1.748e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002571/0.002588, allocations: 2.364 MB / 275.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.0037, allocations: 0.8295 MB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.24e-05/0.003792, allocations: 7.938 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002134/0.004006, allocations: 59.44 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.004208, allocations: 111.2 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001529/0.004361, allocations: 83.81 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.004589, allocations: 287.3 kB / 276.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.004718, allocations: 44.56 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.004962, allocations: 179.5 kB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.005112, allocations: 95.77 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.005142, allocations: 20 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.00525, allocations: 83.84 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.267e-05/0.005303, allocations: 51.81 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.187e-05/0.005364, allocations: 83.77 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.005623, allocations: 235.2 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.005625, allocations: 4 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005626, allocations: 0 / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.00563, allocations: 0 / 277.5 MB, free: 13.02 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.0005418/0.006172, allocations: 0.562 MB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.006205, allocations: 12.03 kB / 278 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.00633, allocations: 48.78 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.006543, allocations: 212.9 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.006566, allocations: 12.75 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.006603, allocations: 28.33 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/0.006847, allocations: 184.6 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.006861, allocations: 4.188 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.006877, allocations: 4.375 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.006889, allocations: 11.94 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.007031, allocations: 87.3 kB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007468/0.007778, allocations: 0.7081 MB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.008001, allocations: 119.1 kB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.515e-05/0.008066, allocations: 55.66 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.008084, allocations: 3.984 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.008105, allocations: 37.39 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 1.012e-06/0.008106, allocations: 0 / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009441/0.00905, allocations: 0.6492 MB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/0.009075, allocations: 59.34 kB / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.00922, allocations: 244.1 kB / 280.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.009237, allocations: 29.7 kB / 280.5 MB, free: 9.723 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.359e-05/0.00931, allocations: 195.2 kB / 280.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.00935, allocations: 71.38 kB / 280.8 MB, free: 9.457 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.19e-05/0.009412, allocations: 63.31 kB / 280.8 MB, free: 9.387 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.009537, allocations: 0.5001 MB / 281.3 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.336e-05/0.009601, allocations: 39.92 kB / 281.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-05/0.009695, allocations: 90.69 kB / 281.5 MB, free: 8.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001399/0.009834, allocations: 121.3 kB / 281.6 MB, free: 8.598 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.009836, allocations: 3.938 kB / 281.6 MB, free: 8.594 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002523/0.01009, allocations: 213.8 kB / 281.8 MB, free: 8.375 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.01011, allocations: 8 kB / 281.8 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.01011, allocations: 0 / 281.8 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001436/0.01026, allocations: 51.59 kB / 281.9 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.663e-05/0.01034, allocations: 39.91 kB / 281.9 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.01172, allocations: 2.153 MB / 284.1 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.069e-05/0.0118, allocations: 23.92 kB / 284.1 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.01181, allocations: 4.047 kB / 284.1 MB, free: 5.977 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 8.646e-05/0.0119, allocations: 178.4 kB / 284.3 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/0.01193, allocations: 27.94 kB / 284.3 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.646e-05/0.01196, allocations: 25.95 kB / 284.3 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.01196, allocations: 0 / 284.3 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.01196, allocations: 0 / 284.3 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.01197, allocations: 4.062 kB / 284.3 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00048/0.01245, allocations: 0.5277 MB / 284.8 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.01245, allocations: 0 / 284.8 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.15e-05/0.01254, allocations: 31.98 kB / 284.9 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.975e-05/0.01263, allocations: 51.86 kB / 284.9 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.01264, allocations: 11.94 kB / 284.9 MB, free: 5.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/0.01367, allocations: 1.924 MB / 286.9 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.01368, allocations: 7.938 kB / 286.9 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003621/0.01404, allocations: 399.2 kB / 287.3 MB, free: 2.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/0.01409, allocations: 31.88 kB / 287.3 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.01411, allocations: 4 kB / 287.3 MB, free: 2.535 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.791e-05/0.01419, allocations: 11.98 kB / 287.3 MB, free: 2.523 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.01429, allocations: 63.88 kB / 287.4 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.0143, allocations: 4 kB / 287.4 MB, free: 2.457 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.366e-05/0.01439, allocations: 183.2 kB / 287.5 MB, free: 2.277 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01439, allocations: 0 / 287.5 MB, free: 2.277 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002615/0.01466, allocations: 71.94 kB / 287.6 MB, free: 2.207 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.0006739/0.01533, allocations: 346.4 kB / 288 MB, free: 1.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003693/0.0157, allocations: 336.4 kB / 288.3 MB, free: 1.633 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.0157, allocations: 0 / 288.3 MB, free: 1.633 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.01587, allocations: 261.5 kB / 288.5 MB, free: 1.355 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.01612, allocations: 60.31 kB / 288.6 MB, free: 1.301 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008798/0.017, allocations: 0.5941 MB / 289.2 MB, free: 0.668 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.675e-05/0.01705, allocations: 84.31 kB / 289.3 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.0171, allocations: 21.95 kB / 289.3 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.352e-05/0.01714, allocations: 24.5 kB / 289.3 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01714, allocations: 0 / 289.3 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of Templates: time 0.005595/0.02274, allocations: 3.824 MB / 293.1 MB, free: 12.73 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] 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","",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.9876598212867975]