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.0008641/0.0008641, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003374/0.003374, allocations: 141.2 kB / 24.68 MB, free: 9.43 MB / 18.57 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 0.8479/0.8479, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.233e-06/1.233e-06, allocations: 0 / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.568e-05/1.691e-05, allocations: 2.281 kB / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002047/0.002063, allocations: 2.111 MB / 321.8 MB, free: 3.734 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000742/0.002805, allocations: 0.6699 MB / 322.5 MB, free: 3.059 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.453e-05/0.00289, allocations: 7.938 kB / 322.5 MB, free: 3.051 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.003044, allocations: 31.66 kB / 322.5 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.003173, allocations: 75.34 kB / 322.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.003428, allocations: 103.7 kB / 322.7 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.003625, allocations: 271.3 kB / 322.9 MB, free: 2.578 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.003739, allocations: 44.52 kB / 323 MB, free: 2.531 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.003882, allocations: 159.6 kB / 323.1 MB, free: 2.375 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.004012, allocations: 95.75 kB / 323.2 MB, free: 2.281 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.004038, allocations: 20 kB / 323.2 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.877e-05/0.004127, allocations: 67.95 kB / 323.3 MB, free: 2.195 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.455e-05/0.004181, allocations: 51.81 kB / 323.4 MB, free: 2.145 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.305e-05/0.004235, allocations: 71.83 kB / 323.4 MB, free: 2.074 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.004487, allocations: 295.1 kB / 323.7 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.644e-06/0.00449, allocations: 3.984 kB / 323.7 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.004491, allocations: 7.938 kB / 323.7 MB, free: 1.773 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.004495, allocations: 0 / 323.7 MB, free: 1.773 MB / 282.7 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.0005215/0.005017, allocations: 445.7 kB / 324.2 MB, free: 1.309 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.005048, allocations: 12.92 kB / 324.2 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.005089, allocations: 28.78 kB / 324.2 MB, free: 1.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.005281, allocations: 170.1 kB / 324.4 MB, free: 1.078 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.005298, allocations: 16.88 kB / 324.4 MB, free: 1.062 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.005328, allocations: 16.38 kB / 324.4 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.005597, allocations: 227 kB / 324.6 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.005609, allocations: 4.188 kB / 324.6 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.005625, allocations: 8.375 kB / 324.6 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.005632, allocations: 7.938 kB / 324.7 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.005835, allocations: 161 kB / 324.8 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006652/0.0065, allocations: 0.6337 MB / 325.4 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.006731, allocations: 122.5 kB / 325.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.177e-05/0.006812, allocations: 72.77 kB / 325.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.006827, allocations: 0 / 325.6 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.006844, allocations: 38.56 kB / 325.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 9.31e-07/0.006845, allocations: 0 / 325.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001049/0.007894, allocations: 0.7577 MB / 326.4 MB, free: 14.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.626e-05/0.00792, allocations: 55.41 kB / 326.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.008037, allocations: 186.7 kB / 326.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.008051, allocations: 29.7 kB / 326.7 MB, free: 14.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.277e-05/0.008114, allocations: 148.3 kB / 326.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.732e-05/0.008152, allocations: 75.42 kB / 326.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.278e-05/0.008204, allocations: 49.66 kB / 327 MB, free: 14.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.609e-05/0.00828, allocations: 334.8 kB / 327.3 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.328e-05/0.008374, allocations: 79.95 kB / 327.4 MB, free: 13.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.008485, allocations: 124.6 kB / 327.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.008658, allocations: 164.7 kB / 327.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.00866, allocations: 0 / 327.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002938/0.008953, allocations: 296.5 kB / 327.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.008966, allocations: 4 kB / 327.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.00897, allocations: 64 / 327.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001585/0.009129, allocations: 76.8 kB / 328 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.192e-05/0.009211, allocations: 43.92 kB / 328.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003135/0.009524, allocations: 0.6109 MB / 328.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.602e-05/0.00961, allocations: 24 kB / 328.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.009624, allocations: 11.94 kB / 328.7 MB, free: 12.51 MB / 298.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 (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 8.76e-05/0.009711, allocations: 147.3 kB / 328.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.009733, allocations: 15.91 kB / 328.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.501e-05/0.009768, allocations: 25.8 kB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.00977, allocations: 4 kB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.009774, allocations: 0 / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.009776, allocations: 0 / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004865/0.01026, allocations: 0.5081 MB / 329.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.01027, allocations: 3.984 kB / 329.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.206e-05/0.01035, allocations: 32.05 kB / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000101/0.01045, allocations: 68.81 kB / 329.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.01046, allocations: 8 kB / 329.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002717/0.01073, allocations: 0.6187 MB / 330.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01073, allocations: 0 / 330.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.01108, allocations: 409.8 kB / 330.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.01112, allocations: 39.88 kB / 330.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.01114, allocations: 3.938 kB / 330.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.343e-05/0.01123, allocations: 19.98 kB / 330.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.947e-05/0.01128, allocations: 23.95 kB / 330.6 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-06/0.01128, allocations: 4 kB / 330.6 MB, free: 10.49 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.261e-05/0.01136, allocations: 147.8 kB / 330.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01136, allocations: 0 / 330.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.01155, allocations: 59.94 kB / 330.8 MB, free: 10.29 MB / 298.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 (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.0001374/0.01169, allocations: 139.2 kB / 331 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002838/0.01198, allocations: 187.1 kB / 331.1 MB, free: 9.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.01198, allocations: 4 kB / 331.1 MB, free: 9.953 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.01209, allocations: 99.78 kB / 331.2 MB, free: 9.855 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.01233, allocations: 32.17 kB / 331.3 MB, free: 9.824 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007216/0.01305, allocations: 0.5943 MB / 331.9 MB, free: 9.191 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.605e-05/0.01312, allocations: 125.5 kB / 332 MB, free: 9.047 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.652e-05/0.01316, allocations: 28.5 kB / 332 MB, free: 9.02 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01316, allocations: 0 / 332 MB, free: 9.02 MB / 298.7 MB Notification: Performance of Templates: time 0.003287/0.01645, allocations: 3.511 MB / 335.5 MB, free: 5.508 MB / 298.7 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.811285052448511]