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.0009849/0.0009849, 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.001072/0.001072, allocations: 165.4 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.95/0.95, allocations: 177.1 MB / 205 MB, free: 5.289 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.703e-06/1.703e-06, allocations: 0 / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.603e-05/2.773e-05, allocations: 5.125 kB / 273 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003758/0.003786, allocations: 2.364 MB / 275.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.005103, allocations: 0.8411 MB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.005219, allocations: 0 / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.005483, allocations: 55.45 kB / 276.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003022/0.005785, allocations: 115.2 kB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.006005, allocations: 79.83 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003159/0.006321, allocations: 291.2 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.006462, allocations: 44.56 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002868/0.006749, allocations: 179.5 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.006941, allocations: 91.77 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/0.006981, allocations: 28 kB / 277 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001553/0.007136, allocations: 83.89 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.087e-05/0.007207, allocations: 47.83 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.201e-05/0.007299, allocations: 87.75 kB / 277.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003504/0.00765, allocations: 231.2 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.007652, allocations: 0 / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.007654, allocations: 4 kB / 277.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.007659, allocations: 3.938 kB / 277.5 MB, free: 12.86 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.000741/0.0084, allocations: 0.5582 MB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.008435, allocations: 12.03 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.008614, allocations: 52.78 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002846/0.008899, allocations: 208.9 kB / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.008928, allocations: 12.75 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.008969, allocations: 24.33 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003311/0.0093, allocations: 184.6 kB / 278.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.009318, allocations: 4.188 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.009338, allocations: 4.375 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.009351, allocations: 7.938 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/0.009566, allocations: 99.28 kB / 278.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009503/0.01052, allocations: 0.7081 MB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.01082, allocations: 115.1 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.557e-05/0.0109, allocations: 43.67 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.01092, allocations: 4 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.01094, allocations: 37.39 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 1.794e-06/0.01094, allocations: 0 / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001285/0.01223, allocations: 0.6505 MB / 280.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.01226, allocations: 63.28 kB / 280.3 MB, free: 9.863 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.01247, allocations: 252.1 kB / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.01248, allocations: 25.7 kB / 280.5 MB, free: 9.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.215e-05/0.01258, allocations: 191.2 kB / 280.7 MB, free: 9.379 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.768e-05/0.01263, allocations: 71.39 kB / 280.8 MB, free: 9.309 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.584e-05/0.01272, allocations: 71.23 kB / 280.9 MB, free: 9.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.01286, allocations: 0.4962 MB / 281.3 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.867e-05/0.01296, allocations: 39.97 kB / 281.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.01308, allocations: 86.7 kB / 281.5 MB, free: 8.582 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.01327, allocations: 125.3 kB / 281.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.01328, allocations: 0 / 281.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003718/0.01365, allocations: 209.8 kB / 281.8 MB, free: 8.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.01366, allocations: 6.5 kB / 281.8 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.01367, allocations: 4.062 kB / 281.8 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001664/0.01383, allocations: 59.52 kB / 281.9 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.01396, allocations: 31.98 kB / 281.9 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.01545, allocations: 2.149 MB / 284 MB, free: 5.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.01557, allocations: 23.95 kB / 284.1 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.01559, allocations: 8 kB / 284.1 MB, free: 5.832 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 0.0001053/0.0157, allocations: 168.5 kB / 284.2 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.01576, allocations: 31.89 kB / 284.3 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/0.0158, allocations: 22.02 kB / 284.3 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.0158, allocations: 3.984 kB / 284.3 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.0158, allocations: 4.062 kB / 284.3 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.0158, allocations: 0 / 284.3 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007046/0.01651, allocations: 0.5343 MB / 284.8 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.01651, allocations: 4 kB / 284.8 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.01666, allocations: 35.91 kB / 284.9 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001203/0.01678, allocations: 43.66 kB / 284.9 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.855e-05/0.0168, allocations: 8 kB / 284.9 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.01808, allocations: 1.928 MB / 286.9 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.01808, allocations: 3.938 kB / 286.9 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004895/0.01857, allocations: 402.5 kB / 287.3 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.01864, allocations: 31.88 kB / 287.3 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.01867, allocations: 8 kB / 287.3 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.01879, allocations: 15.98 kB / 287.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.01892, allocations: 59.92 kB / 287.4 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.01894, allocations: 8 kB / 287.4 MB, free: 2.309 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001211/0.01906, allocations: 179.2 kB / 287.5 MB, free: 2.133 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01906, allocations: 0 / 287.5 MB, free: 2.133 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004113/0.01947, allocations: 71.88 kB / 287.6 MB, free: 2.062 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.000888/0.02036, allocations: 346 kB / 288 MB, free: 1.836 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004876/0.02085, allocations: 344.3 kB / 288.3 MB, free: 1.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.02085, allocations: 0 / 288.3 MB, free: 1.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.0211, allocations: 269.2 kB / 288.6 MB, free: 1.195 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003939/0.0215, allocations: 52 kB / 288.6 MB, free: 1.148 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.02267, allocations: 0.5838 MB / 289.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.599e-05/0.02274, allocations: 84.31 kB / 289.3 MB, free: 432 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.905e-05/0.02282, allocations: 17.95 kB / 289.3 MB, free: 416 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.971e-05/0.02288, allocations: 32.48 kB / 289.3 MB, free: 384 kB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.02288, allocations: 0 / 289.3 MB, free: 384 kB / 266.7 MB Notification: Performance of Templates: time 0.1254/0.1483, allocations: 4.055 MB / 293.4 MB, free: 24.23 MB / 266.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.893514617346227]