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.001141/0.001141, allocations: 91.61 kB / 22.18 MB, free: 2.383 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.0009215/0.0009215, allocations: 157.4 kB / 25.44 MB, free: 9.352 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.8628/0.8628, allocations: 158.6 MB / 187.2 MB, free: 3.047 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.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.943e-06/1.943e-06, allocations: 0 / 299.7 MB, free: 7.027 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.747e-05/2.941e-05, allocations: 10.22 kB / 299.7 MB, free: 7.016 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002426/0.002455, allocations: 2.073 MB / 301.8 MB, free: 4.922 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009216/0.003377, allocations: 0.7137 MB / 302.5 MB, free: 4.199 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.003479, allocations: 7.938 kB / 302.5 MB, free: 4.191 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.003652, allocations: 23.73 kB / 302.5 MB, free: 4.168 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.003797, allocations: 71.41 kB / 302.6 MB, free: 4.098 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002961/0.004093, allocations: 115.7 kB / 302.7 MB, free: 3.984 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002328/0.004326, allocations: 279.3 kB / 303 MB, free: 3.711 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.004455, allocations: 44.31 kB / 303 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002227/0.004677, allocations: 175.6 kB / 303.2 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.004836, allocations: 95.75 kB / 303.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.753e-05/0.004873, allocations: 20 kB / 303.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.004987, allocations: 71.94 kB / 303.4 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.626e-05/0.005063, allocations: 51.81 kB / 303.4 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.451e-05/0.005147, allocations: 79.77 kB / 303.5 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003533/0.005501, allocations: 307 kB / 303.8 MB, free: 2.887 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.005503, allocations: 0 / 303.8 MB, free: 2.887 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.005504, allocations: 0 / 303.8 MB, free: 2.887 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.00551, allocations: 0 / 303.8 MB, free: 2.887 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008002/0.006311, allocations: 0.4949 MB / 304.3 MB, free: 2.355 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.006351, allocations: 19.91 kB / 304.3 MB, free: 2.336 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.226e-05/0.006403, allocations: 24.8 kB / 304.3 MB, free: 2.312 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.006623, allocations: 177.4 kB / 304.5 MB, free: 2.113 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.006642, allocations: 12.38 kB / 304.5 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.515e-05/0.006677, allocations: 24.38 kB / 304.5 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.006994, allocations: 235.7 kB / 304.8 MB, free: 1.836 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.007007, allocations: 192 / 304.8 MB, free: 1.836 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.007024, allocations: 8.375 kB / 304.8 MB, free: 1.828 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002663/0.00729, allocations: 7.938 kB / 304.8 MB, free: 1.82 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.007567, allocations: 191.8 kB / 305 MB, free: 1.633 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006239/0.008191, allocations: 0.5547 MB / 305.5 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.008546, allocations: 194.3 kB / 305.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.008671, allocations: 92.81 kB / 305.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.008688, allocations: 4 kB / 305.8 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002303/0.008918, allocations: 163.2 kB / 306 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.104e-06/0.00892, allocations: 0 / 306 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.001657/0.01058, allocations: 0.9317 MB / 306.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.01061, allocations: 59.39 kB / 307 MB, free: 15.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.01073, allocations: 187.2 kB / 307.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.01075, allocations: 33.7 kB / 307.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.63e-05/0.01081, allocations: 140.4 kB / 307.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.01086, allocations: 91.25 kB / 307.4 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.155e-05/0.01093, allocations: 65.66 kB / 307.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.153e-05/0.01101, allocations: 330.8 kB / 307.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.01117, allocations: 130 kB / 307.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.01134, allocations: 174 kB / 308.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.01161, allocations: 251.7 kB / 308.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.01161, allocations: 0 / 308.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004911/0.0121, allocations: 437.6 kB / 308.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.01213, allocations: 33.7 kB / 308.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.01214, allocations: 3.984 kB / 308.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001743/0.01231, allocations: 64.83 kB / 308.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.01242, allocations: 51.91 kB / 308.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003282/0.01275, allocations: 0.6227 MB / 309.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.01287, allocations: 32 kB / 309.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.01289, allocations: 8.078 kB / 309.6 MB, free: 12.77 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: 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 9.758e-05/0.01298, allocations: 145.7 kB / 309.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.013, allocations: 23.8 kB / 309.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.75e-05/0.01304, allocations: 25.97 kB / 309.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.01304, allocations: 7.938 kB / 309.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.01305, allocations: 0 / 309.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.01305, allocations: 8.047 kB / 309.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006421/0.0137, allocations: 0.5892 MB / 310.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.0137, allocations: 0 / 310.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.0138, allocations: 35.97 kB / 310.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.01391, allocations: 72.84 kB / 310.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.01392, allocations: 11.98 kB / 310.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002904/0.01421, allocations: 0.6147 MB / 311.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01421, allocations: 0 / 311.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.01475, allocations: 0.5009 MB / 311.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.716e-05/0.01481, allocations: 39.88 kB / 311.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.01483, allocations: 12 kB / 311.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.01494, allocations: 27.91 kB / 311.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.01502, allocations: 39.92 kB / 311.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.01503, allocations: 4 kB / 311.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003534/0.01538, allocations: 143.5 kB / 311.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01538, allocations: 4 kB / 311.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000211/0.01559, allocations: 64 kB / 311.9 MB, free: 10.31 MB / 298.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.0001616/0.01575, allocations: 135.1 kB / 312.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004633/0.01622, allocations: 332.8 kB / 312.4 MB, free: 9.828 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01622, allocations: 0 / 312.4 MB, free: 9.828 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001801/0.0164, allocations: 135.8 kB / 312.5 MB, free: 9.695 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.01667, allocations: 39.77 kB / 312.6 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008124/0.01748, allocations: 0.5901 MB / 313.1 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.162e-05/0.01756, allocations: 125.6 kB / 313.3 MB, free: 8.895 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.634e-05/0.01761, allocations: 24.5 kB / 313.3 MB, free: 8.871 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01761, allocations: 0 / 313.3 MB, free: 8.871 MB / 298.7 MB Notification: Performance of Templates: time 0.004004/0.02162, allocations: 3.94 MB / 317.2 MB, free: 4.926 MB / 298.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.642102617770433]