Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001187/0.001187, allocations: 75.77 kB / 22.46 MB, free: 2.09 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.001292/0.001292, allocations: 164 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9257/0.9257, allocations: 158.6 MB / 187.5 MB, free: 2.516 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 251.1 MB, free: 7.793 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.588e-05/2.716e-05, allocations: 6.312 kB / 251.1 MB, free: 7.785 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00261/0.002637, allocations: 2.233 MB / 253.3 MB, free: 5.535 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009816/0.003618, allocations: 0.7253 MB / 254.1 MB, free: 4.797 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.003728, allocations: 7.938 kB / 254.1 MB, free: 4.789 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.003917, allocations: 31.72 kB / 254.1 MB, free: 4.758 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.004071, allocations: 71.34 kB / 254.2 MB, free: 4.688 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.004394, allocations: 103.7 kB / 254.3 MB, free: 4.586 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002413/0.004636, allocations: 271.3 kB / 254.5 MB, free: 4.32 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.004772, allocations: 40.56 kB / 254.6 MB, free: 4.281 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.004948, allocations: 163.6 kB / 254.7 MB, free: 4.121 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.005112, allocations: 95.75 kB / 254.8 MB, free: 4.027 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.005143, allocations: 20 kB / 254.8 MB, free: 4.008 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.005252, allocations: 67.89 kB / 254.9 MB, free: 3.941 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.895e-05/0.005321, allocations: 51.81 kB / 255 MB, free: 3.891 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.89e-05/0.00539, allocations: 75.83 kB / 255 MB, free: 3.816 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002621/0.005652, allocations: 219.2 kB / 255.2 MB, free: 3.602 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.005654, allocations: 0 / 255.2 MB, free: 3.602 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.005655, allocations: 0 / 255.2 MB, free: 3.602 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.00566, allocations: 0 / 255.2 MB, free: 3.602 MB / 234.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.0006372/0.006297, allocations: 0.539 MB / 255.8 MB, free: 3.027 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.006341, allocations: 11.98 kB / 255.8 MB, free: 3.016 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.105e-05/0.006412, allocations: 44.73 kB / 255.8 MB, free: 2.973 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.006625, allocations: 184.2 kB / 256 MB, free: 2.766 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.006655, allocations: 16.88 kB / 256 MB, free: 2.746 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.006693, allocations: 28.33 kB / 256.1 MB, free: 2.719 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.006985, allocations: 205.4 kB / 256.3 MB, free: 2.5 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.007001, allocations: 4.188 kB / 256.3 MB, free: 2.496 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.007019, allocations: 12.38 kB / 256.3 MB, free: 2.484 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.00703, allocations: 7.938 kB / 256.3 MB, free: 2.477 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.007186, allocations: 105 kB / 256.4 MB, free: 2.375 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008023/0.007989, allocations: 0.7138 MB / 257.1 MB, free: 1.613 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.00825, allocations: 99.02 kB / 257.2 MB, free: 1.504 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.261e-05/0.008323, allocations: 51.66 kB / 257.2 MB, free: 1.449 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.008339, allocations: 0 / 257.2 MB, free: 1.449 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.008362, allocations: 37.39 kB / 257.3 MB, free: 1.402 MB / 234.7 MB Notification: Performance of pre-optimization done (n=18): time 1.532e-06/0.008363, allocations: 4 kB / 257.3 MB, free: 1.398 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.001066/0.00943, allocations: 0.651 MB / 257.9 MB, free: 0.6836 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.009458, allocations: 55.41 kB / 258 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004259/0.009884, allocations: 241.8 kB / 258.2 MB, free: 372 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.0099, allocations: 29.7 kB / 258.3 MB, free: 336 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.51e-05/0.009975, allocations: 195.1 kB / 258.5 MB, free: 136 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.01002, allocations: 75.36 kB / 258.5 MB, free: 60 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-05/0.01009, allocations: 59.41 kB / 258.6 MB, free: 15.99 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.01021, allocations: 0.5 MB / 259.1 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.53e-05/0.01028, allocations: 43.97 kB / 259.1 MB, free: 15.44 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.426e-05/0.01038, allocations: 92.02 kB / 259.2 MB, free: 15.33 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.01053, allocations: 132 kB / 259.3 MB, free: 15.19 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-06/0.01053, allocations: 0 / 259.3 MB, free: 15.19 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002765/0.01081, allocations: 242.7 kB / 259.6 MB, free: 14.94 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.01082, allocations: 12 kB / 259.6 MB, free: 14.93 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.01083, allocations: 0 / 259.6 MB, free: 14.93 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001836/0.01101, allocations: 63.64 kB / 259.7 MB, free: 14.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.482e-05/0.01111, allocations: 31.98 kB / 259.7 MB, free: 14.83 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003896/0.0115, allocations: 0.8585 MB / 260.5 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.318e-05/0.01158, allocations: 12 kB / 260.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.0116, allocations: 23.95 kB / 260.6 MB, free: 13.91 MB / 250.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 9.342e-05/0.01169, allocations: 168.5 kB / 260.7 MB, free: 13.73 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.01172, allocations: 23.91 kB / 260.8 MB, free: 13.71 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.736e-05/0.01176, allocations: 25.75 kB / 260.8 MB, free: 13.68 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.01176, allocations: 4 kB / 260.8 MB, free: 13.68 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.01177, allocations: 3.984 kB / 260.8 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.01177, allocations: 0 / 260.8 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005221/0.01229, allocations: 0.519 MB / 261.3 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.0123, allocations: 4.062 kB / 261.3 MB, free: 13.1 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.705e-05/0.01239, allocations: 31.98 kB / 261.4 MB, free: 13.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.0125, allocations: 55.64 kB / 261.4 MB, free: 13.01 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.01252, allocations: 11.98 kB / 261.4 MB, free: 13 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003449/0.01286, allocations: 0.8507 MB / 262.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01287, allocations: 0 / 262.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003427/0.01321, allocations: 398.7 kB / 262.7 MB, free: 11.69 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.01326, allocations: 35.88 kB / 262.7 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.01328, allocations: 7.938 kB / 262.7 MB, free: 11.65 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.877e-05/0.01336, allocations: 15.98 kB / 262.7 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.048e-05/0.01342, allocations: 23.95 kB / 262.7 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.01343, allocations: 4 kB / 262.7 MB, free: 11.61 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.174e-05/0.01351, allocations: 179.6 kB / 262.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01351, allocations: 0 / 262.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002211/0.01374, allocations: 67.94 kB / 263 MB, free: 11.36 MB / 250.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.0001665/0.0139, allocations: 127.1 kB / 263.1 MB, free: 11.23 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.01421, allocations: 156.7 kB / 263.3 MB, free: 11.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.01421, allocations: 4 kB / 263.3 MB, free: 11.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.01432, allocations: 81.22 kB / 263.3 MB, free: 10.99 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.01459, allocations: 43.94 kB / 263.4 MB, free: 10.95 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009921/0.01559, allocations: 0.5652 MB / 264 MB, free: 10.34 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.889e-05/0.01564, allocations: 87.91 kB / 264 MB, free: 10.23 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.373e-05/0.01569, allocations: 17.95 kB / 264.1 MB, free: 10.22 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.378e-05/0.01572, allocations: 16.5 kB / 264.1 MB, free: 10.2 MB / 250.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01572, allocations: 0 / 264.1 MB, free: 10.2 MB / 250.7 MB Notification: Performance of Templates: time 0.005227/0.02095, allocations: 2.896 MB / 267 MB, free: 7.328 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7431748912204057]