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.001891/0.001891, allocations: 92.33 kB / 21.73 MB, free: 2.68 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.001675/0.001675, allocations: 164.5 kB / 25.02 MB, free: 9.438 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 1.389/1.389, allocations: 158.6 MB / 186.8 MB, free: 2.91 MB / 170.7 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: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 250.3 MB, free: 3.957 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.577e-05/2.709e-05, allocations: 2.312 kB / 250.3 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003845/0.003872, allocations: 2.088 MB / 252.4 MB, free: 1.848 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.005375, allocations: 0.7136 MB / 253.1 MB, free: 1.125 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.005482, allocations: 4 kB / 253.2 MB, free: 1.121 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.005677, allocations: 31.67 kB / 253.2 MB, free: 1.09 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001995/0.005877, allocations: 67.47 kB / 253.2 MB, free: 1.023 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.006272, allocations: 119.6 kB / 253.4 MB, free: 0.9062 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003633/0.006635, allocations: 279.4 kB / 253.6 MB, free: 0.6328 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.006767, allocations: 36.56 kB / 253.7 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.007052, allocations: 171.6 kB / 253.8 MB, free: 440 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.007266, allocations: 103.7 kB / 253.9 MB, free: 336 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.509e-05/0.007312, allocations: 20 kB / 254 MB, free: 316 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.007457, allocations: 67.95 kB / 254 MB, free: 248 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.376e-05/0.007551, allocations: 55.8 kB / 254.1 MB, free: 192 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.007675, allocations: 75.83 kB / 254.2 MB, free: 116 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000458/0.008133, allocations: 307.1 kB / 254.5 MB, free: 15.81 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.008136, allocations: 0 / 254.5 MB, free: 15.81 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.008137, allocations: 0 / 254.5 MB, free: 15.81 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.008143, allocations: 4 kB / 254.5 MB, free: 15.8 MB / 250.7 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.001172/0.009314, allocations: 0.4949 MB / 255 MB, free: 15.27 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.009355, allocations: 11.98 kB / 255 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.009467, allocations: 40.73 kB / 255 MB, free: 15.22 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.009816, allocations: 173.4 kB / 255.2 MB, free: 15.03 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.009847, allocations: 16.38 kB / 255.2 MB, free: 15.01 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.009909, allocations: 20.36 kB / 255.2 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005634/0.01047, allocations: 227.8 kB / 255.4 MB, free: 14.76 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.01049, allocations: 8.188 kB / 255.4 MB, free: 14.75 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.01052, allocations: 4.375 kB / 255.4 MB, free: 14.75 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.01053, allocations: 11.92 kB / 255.5 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005532/0.01108, allocations: 199.8 kB / 255.7 MB, free: 14.54 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.01221, allocations: 0.5547 MB / 256.2 MB, free: 13.95 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/0.01284, allocations: 194.4 kB / 256.4 MB, free: 13.75 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.01311, allocations: 88.81 kB / 256.5 MB, free: 13.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.01313, allocations: 7.984 kB / 256.5 MB, free: 13.65 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003988/0.01353, allocations: 159.2 kB / 256.6 MB, free: 13.48 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.773e-06/0.01353, allocations: 0 / 256.6 MB, free: 13.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.002681/0.01622, allocations: 0.9413 MB / 257.6 MB, free: 12.48 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.01627, allocations: 59.23 kB / 257.6 MB, free: 12.42 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002339/0.01651, allocations: 191.2 kB / 257.8 MB, free: 12.22 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.942e-05/0.01654, allocations: 33.7 kB / 257.9 MB, free: 12.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.01667, allocations: 140.4 kB / 258 MB, free: 12.04 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.538e-05/0.01677, allocations: 87.31 kB / 258.1 MB, free: 11.96 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.01689, allocations: 65.64 kB / 258.2 MB, free: 11.89 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.0171, allocations: 326.8 kB / 258.5 MB, free: 11.56 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.01743, allocations: 130 kB / 258.6 MB, free: 11.42 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/0.01778, allocations: 182 kB / 258.8 MB, free: 11.23 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00057/0.01835, allocations: 247.8 kB / 259 MB, free: 10.97 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.01835, allocations: 0 / 259 MB, free: 10.97 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00101/0.01936, allocations: 441.7 kB / 259.5 MB, free: 10.52 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.762e-05/0.01942, allocations: 44.34 kB / 259.5 MB, free: 10.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.01943, allocations: 0 / 259.5 MB, free: 10.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000259/0.01969, allocations: 68.81 kB / 259.6 MB, free: 10.4 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.01993, allocations: 47.91 kB / 259.6 MB, free: 10.35 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006576/0.02058, allocations: 0.6264 MB / 260.2 MB, free: 9.699 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.02086, allocations: 32.11 kB / 260.3 MB, free: 9.668 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.0209, allocations: 19.97 kB / 260.3 MB, free: 9.648 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: 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.0001735/0.02108, allocations: 141.7 kB / 260.4 MB, free: 9.5 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.253e-05/0.02114, allocations: 35.8 kB / 260.5 MB, free: 9.465 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.563e-05/0.02122, allocations: 29.95 kB / 260.5 MB, free: 9.43 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.02122, allocations: 4 kB / 260.5 MB, free: 9.426 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.02123, allocations: 0 / 260.5 MB, free: 9.426 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.02123, allocations: 0 / 260.5 MB, free: 9.426 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.02248, allocations: 0.5773 MB / 261.1 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.02248, allocations: 0 / 261.1 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.02271, allocations: 43.91 kB / 261.1 MB, free: 8.766 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.02291, allocations: 64.81 kB / 261.2 MB, free: 8.699 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/0.02294, allocations: 12 kB / 261.2 MB, free: 8.688 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006177/0.02355, allocations: 0.6147 MB / 261.8 MB, free: 8.047 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.02355, allocations: 0 / 261.8 MB, free: 8.047 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.02474, allocations: 0.5092 MB / 262.3 MB, free: 7.516 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.02485, allocations: 39.86 kB / 262.3 MB, free: 7.477 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.0249, allocations: 12.05 kB / 262.4 MB, free: 7.465 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.02516, allocations: 31.91 kB / 262.4 MB, free: 7.434 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.02527, allocations: 35.94 kB / 262.4 MB, free: 7.398 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.02529, allocations: 8 kB / 262.4 MB, free: 7.391 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001545/0.02545, allocations: 139.5 kB / 262.6 MB, free: 7.254 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02545, allocations: 0 / 262.6 MB, free: 7.254 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003873/0.02583, allocations: 68 kB / 262.6 MB, free: 7.188 MB / 250.7 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.000251/0.02608, allocations: 123.1 kB / 262.8 MB, free: 7.059 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0008838/0.02697, allocations: 356.6 kB / 263.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.02697, allocations: 0 / 263.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.02736, allocations: 135.8 kB / 263.2 MB, free: 6.559 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.02781, allocations: 60.03 kB / 263.3 MB, free: 6.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.02924, allocations: 0.5614 MB / 263.9 MB, free: 5.91 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.0294, allocations: 129.6 kB / 264 MB, free: 5.766 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.0295, allocations: 25.95 kB / 264 MB, free: 5.742 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.082e-05/0.02957, allocations: 20.5 kB / 264 MB, free: 5.723 MB / 250.7 MB Notification: Performance of SimCode: time 7.02e-07/0.02957, allocations: 0 / 264 MB, free: 5.723 MB / 250.7 MB Notification: Performance of Templates: time 0.008904/0.03847, allocations: 3.624 MB / 267.7 MB, free: 2.129 MB / 250.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/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: 4.396691617905162]