Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.002064/0.002064, allocations: 109.2 kB / 21.93 MB, free: 5.223 MB / 14.72 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.002438/0.002438, allocations: 214 kB / 25.22 MB, free: 3.027 MB / 14.72 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 1.58/1.58, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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.OneWayClutch,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.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,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.OneWayClutch") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 54.58 kB / 348.4 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3468, allocations: 49.15 MB / 397.6 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003905/0.3507, allocations: 2.078 MB / 399.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.3522, allocations: 0.7092 MB / 400.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.3523, allocations: 3.344 kB / 400.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.3525, allocations: 35.72 kB / 400.4 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001893/0.3527, allocations: 70.25 kB / 400.5 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.3531, allocations: 112 kB / 400.6 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003444/0.3535, allocations: 270.5 kB / 400.9 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.3536, allocations: 47.62 kB / 400.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002174/0.3538, allocations: 127.5 kB / 401 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.354, allocations: 117.4 kB / 401.1 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.3541, allocations: 20.12 kB / 401.2 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.3543, allocations: 68.02 kB / 401.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.3544, allocations: 53.84 kB / 401.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.3545, allocations: 94.84 kB / 401.4 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005064/0.355, allocations: 284.8 kB / 401.7 MB, free: 6.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.355, allocations: 5.219 kB / 401.7 MB, free: 6.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.355, allocations: 0.75 kB / 401.7 MB, free: 6.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.355, allocations: 0 / 401.7 MB, free: 6.914 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001043/0.3561, allocations: 0.489 MB / 402.2 MB, free: 6.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.3561, allocations: 17.27 kB / 402.2 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.696e-05/0.3562, allocations: 26.12 kB / 402.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.3566, allocations: 179.7 kB / 402.4 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.3566, allocations: 13.31 kB / 402.4 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.723e-05/0.3566, allocations: 21.5 kB / 402.4 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005196/0.3572, allocations: 238.2 kB / 402.6 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.3572, allocations: 7.594 kB / 402.6 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.3572, allocations: 5.406 kB / 402.6 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.026e-06/0.3572, allocations: 5.562 kB / 402.7 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.3577, allocations: 194.9 kB / 402.8 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.3587, allocations: 0.5518 MB / 403.4 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005794/0.3593, allocations: 185.9 kB / 403.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.3595, allocations: 102.6 kB / 403.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.3595, allocations: 3.312 kB / 403.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003746/0.3599, allocations: 166.7 kB / 403.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.585e-06/0.3599, allocations: 0 / 403.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002478/0.3624, allocations: 0.9263 MB / 404.8 MB, free: 5.043 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.3624, allocations: 60.39 kB / 404.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.3626, allocations: 192.2 kB / 405 MB, free: 4.844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.3626, allocations: 36.25 kB / 405.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.827e-05/0.3627, allocations: 145.1 kB / 405.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.359e-05/0.3628, allocations: 89.14 kB / 405.3 MB, free: 4.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.3629, allocations: 60.38 kB / 405.3 MB, free: 4.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.316e-05/0.363, allocations: 330.5 kB / 405.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.3633, allocations: 134.2 kB / 405.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003039/0.3636, allocations: 175.7 kB / 406 MB, free: 4.082 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/0.3641, allocations: 249.9 kB / 406.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3641, allocations: 1.25 kB / 406.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008351/0.3649, allocations: 430.1 kB / 406.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.624e-05/0.3649, allocations: 41.8 kB / 406.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.365, allocations: 1.375 kB / 406.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.3652, allocations: 74.81 kB / 406.7 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.3654, allocations: 54 kB / 406.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004186/0.3659, allocations: 0.6046 MB / 407.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.3662, allocations: 30.53 kB / 407.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.3662, allocations: 17.89 kB / 407.5 MB, free: 3.082 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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.0001378/0.3663, allocations: 143 kB / 407.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.742e-05/0.3664, allocations: 23.06 kB / 407.6 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.256e-05/0.3664, allocations: 23.69 kB / 407.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3664, allocations: 3.312 kB / 407.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.3664, allocations: 0.8906 kB / 407.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3664, allocations: 0.9375 kB / 407.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.3675, allocations: 0.5909 MB / 408.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3675, allocations: 0 / 408.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.3677, allocations: 46.39 kB / 408.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001611/0.3679, allocations: 63.55 kB / 408.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.3679, allocations: 8.797 kB / 408.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003253/0.3682, allocations: 0.6069 MB / 409 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3682, allocations: 5.438 kB / 409 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008997/0.3691, allocations: 0.496 MB / 409.5 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.112e-05/0.3692, allocations: 41.17 kB / 409.5 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.137e-05/0.3692, allocations: 7.406 kB / 409.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.3695, allocations: 34.06 kB / 409.5 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3696, allocations: 34.78 kB / 409.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.3696, allocations: 6.797 kB / 409.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001199/0.3697, allocations: 140.6 kB / 409.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3697, allocations: 0 / 409.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004034/0.3701, allocations: 74.34 kB / 409.8 MB, free: 1.531 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002006/0.3703, allocations: 126.8 kB / 409.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008582/0.3712, allocations: 340.9 kB / 410.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3712, allocations: 0 / 410.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003423/0.3715, allocations: 137.6 kB / 410.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.3719, allocations: 41.47 kB / 410.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.3733, allocations: 0.6934 MB / 411.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.3734, allocations: 127.9 kB / 411.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.989e-05/0.3735, allocations: 25.12 kB / 411.3 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3735, allocations: 1.281 kB / 411.3 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of Templates: time 0.007277/0.3807, allocations: 3.917 MB / 415.2 MB, free: 14.73 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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: 8.633817421738058]