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.0009066/0.0009066, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.0009168/0.0009168, allocations: 167.2 kB / 24.82 MB, free: 8.914 MB / 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.9625/0.9625, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.633e-06/1.633e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.389e-05/1.552e-05, allocations: 6.25 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002613/0.002629, allocations: 2.336 MB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.003889, allocations: 0.8333 MB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.003997, allocations: 4 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.004212, allocations: 47.52 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002197/0.004432, allocations: 115.1 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.004592, allocations: 75.83 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.004811, allocations: 287.3 kB / 277.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.004915, allocations: 52.56 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.005117, allocations: 175.5 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.005266, allocations: 103.7 kB / 277.4 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.005295, allocations: 20 kB / 277.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.005404, allocations: 75.92 kB / 277.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.186e-05/0.005455, allocations: 59.75 kB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.575e-05/0.005511, allocations: 79.81 kB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.005745, allocations: 235.1 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.005746, allocations: 0 / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005747, allocations: 0 / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.457e-06/0.005751, allocations: 0 / 277.9 MB, free: 12.82 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.0005093/0.00626, allocations: 0.5737 MB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.00629, allocations: 8.031 kB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.006403, allocations: 44.8 kB / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.00659, allocations: 212.8 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.006612, allocations: 16.75 kB / 278.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.006639, allocations: 20.33 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.006815, allocations: 172.6 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.006828, allocations: 8.188 kB / 278.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.006841, allocations: 4.375 kB / 278.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.006849, allocations: 7.938 kB / 278.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.603e-05/0.006945, allocations: 83.2 kB / 279 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000593/0.007538, allocations: 0.6774 MB / 279.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.007712, allocations: 110.9 kB / 279.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.323e-05/0.007756, allocations: 43.84 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.007769, allocations: 4 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.836e-05/0.007787, allocations: 41.39 kB / 279.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 1.152e-06/0.007788, allocations: 0 / 279.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007431/0.008532, allocations: 0.5828 MB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/0.008556, allocations: 63.34 kB / 280.5 MB, free: 9.945 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.008674, allocations: 236.1 kB / 280.7 MB, free: 9.699 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.008689, allocations: 37.7 kB / 280.8 MB, free: 9.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.932e-05/0.008758, allocations: 195.1 kB / 281 MB, free: 9.461 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.923e-05/0.008797, allocations: 75.38 kB / 281 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.342e-05/0.008851, allocations: 55.33 kB / 281.1 MB, free: 9.324 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.008953, allocations: 0.5001 MB / 281.6 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.073e-05/0.008994, allocations: 31.97 kB / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.618e-05/0.00906, allocations: 82.67 kB / 281.7 MB, free: 8.684 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.009161, allocations: 113.3 kB / 281.8 MB, free: 8.559 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.009162, allocations: 0 / 281.8 MB, free: 8.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0001896/0.009352, allocations: 193.7 kB / 282 MB, free: 8.359 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.009363, allocations: 10.19 kB / 282 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.009368, allocations: 0 / 282 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001053/0.009473, allocations: 47.64 kB / 282.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.735e-05/0.00955, allocations: 39.91 kB / 282.1 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.01076, allocations: 2.115 MB / 284.2 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.794e-05/0.01084, allocations: 15.98 kB / 284.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.01085, allocations: 12.06 kB / 284.3 MB, free: 6.012 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 7.76e-05/0.01093, allocations: 172.5 kB / 284.4 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.503e-05/0.01096, allocations: 27.86 kB / 284.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.01099, allocations: 21.97 kB / 284.5 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.01099, allocations: 7.938 kB / 284.5 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.011, allocations: 4.031 kB / 284.5 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.011, allocations: 3.984 kB / 284.5 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004031/0.0114, allocations: 481.2 kB / 285 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.01141, allocations: 0 / 285 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.613e-05/0.01149, allocations: 31.92 kB / 285 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.433e-05/0.01157, allocations: 51.58 kB / 285 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.01158, allocations: 8 kB / 285 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008002/0.01238, allocations: 1.897 MB / 286.9 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.01238, allocations: 4 kB / 286.9 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.01266, allocations: 383.1 kB / 287.3 MB, free: 2.727 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.0127, allocations: 35.83 kB / 287.4 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.01272, allocations: 8.031 kB / 287.4 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.728e-05/0.0128, allocations: 19.92 kB / 287.4 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.547e-05/0.01288, allocations: 59.83 kB / 287.4 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.01289, allocations: 4 kB / 287.4 MB, free: 2.602 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.897e-05/0.01296, allocations: 175.1 kB / 287.6 MB, free: 2.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01296, allocations: 0 / 287.6 MB, free: 2.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002442/0.0132, allocations: 71.94 kB / 287.7 MB, free: 2.359 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.0006443/0.01385, allocations: 354.5 kB / 288 MB, free: 2.129 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002932/0.01414, allocations: 316.5 kB / 288.3 MB, free: 1.801 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01414, allocations: 0 / 288.3 MB, free: 1.801 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.01429, allocations: 265.2 kB / 288.6 MB, free: 1.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002418/0.01453, allocations: 57.33 kB / 288.7 MB, free: 1.469 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007768/0.01531, allocations: 0.5681 MB / 289.2 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.533e-05/0.01538, allocations: 84.33 kB / 289.3 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.765e-05/0.01543, allocations: 25.89 kB / 289.3 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.995e-05/0.01552, allocations: 106.2 kB / 289.4 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01552, allocations: 0 / 289.4 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of Templates: time 0.006083/0.02161, allocations: 4.156 MB / 293.6 MB, free: 12.52 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.8229688704013824]