Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.0009745/0.0009745, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001131/0.001131, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9732/0.9732, allocations: 173.4 MB / 202.3 MB, free: 8.277 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.OneWayClutch,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.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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.635e-05/2.818e-05, allocations: 6.797 kB / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003915/0.003943, allocations: 2.176 MB / 271.4 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.005367, allocations: 0.6796 MB / 272 MB, free: 6.953 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.005524, allocations: 3.938 kB / 272 MB, free: 6.949 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.005728, allocations: 31.72 kB / 272.1 MB, free: 6.918 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.005943, allocations: 77.38 kB / 272.1 MB, free: 6.844 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004512/0.006394, allocations: 107.7 kB / 272.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003524/0.006746, allocations: 288.2 kB / 272.5 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.00688, allocations: 40.56 kB / 272.6 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.007172, allocations: 173.6 kB / 272.7 MB, free: 6.246 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.00738, allocations: 95.75 kB / 272.8 MB, free: 6.152 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/0.007423, allocations: 20 kB / 272.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.007569, allocations: 67.95 kB / 272.9 MB, free: 6.066 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.007649, allocations: 51.81 kB / 273 MB, free: 6.016 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.275e-05/0.007742, allocations: 85.09 kB / 273.1 MB, free: 5.934 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003438/0.008086, allocations: 227.2 kB / 273.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.008089, allocations: 0 / 273.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.00809, allocations: 0.5312 kB / 273.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.008095, allocations: 3.938 kB / 273.3 MB, free: 5.707 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.0008532/0.008948, allocations: 0.5853 MB / 273.9 MB, free: 5.082 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.008987, allocations: 8.031 kB / 273.9 MB, free: 5.074 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.423e-05/0.009071, allocations: 36.8 kB / 273.9 MB, free: 5.039 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/0.00934, allocations: 193.4 kB / 274.1 MB, free: 4.824 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.009367, allocations: 16.38 kB / 274.1 MB, free: 4.809 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.471e-05/0.009412, allocations: 20.83 kB / 274.1 MB, free: 4.789 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.009759, allocations: 194.1 kB / 274.3 MB, free: 4.582 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.009775, allocations: 4.172 kB / 274.3 MB, free: 4.578 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.009796, allocations: 8.375 kB / 274.3 MB, free: 4.57 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.009807, allocations: 11.92 kB / 274.4 MB, free: 4.559 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.009982, allocations: 79.81 kB / 274.4 MB, free: 4.48 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008569/0.01084, allocations: 0.5964 MB / 275 MB, free: 3.852 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.01117, allocations: 130.9 kB / 275.2 MB, free: 3.711 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.234e-05/0.01125, allocations: 43.66 kB / 275.2 MB, free: 3.664 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.01127, allocations: 8 kB / 275.2 MB, free: 3.656 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.01147, allocations: 113.4 kB / 275.3 MB, free: 3.531 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.114e-06/0.01147, allocations: 0 / 275.3 MB, free: 3.531 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.001323/0.01279, allocations: 0.6484 MB / 276 MB, free: 2.82 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.01283, allocations: 55.41 kB / 276 MB, free: 2.754 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.013, allocations: 234.6 kB / 276.2 MB, free: 2.504 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.01302, allocations: 33.7 kB / 276.3 MB, free: 2.465 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.01319, allocations: 195.1 kB / 276.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.37e-05/0.01327, allocations: 87.25 kB / 276.6 MB, free: 2.184 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.01337, allocations: 75.27 kB / 276.6 MB, free: 2.102 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.01352, allocations: 0.504 MB / 277.1 MB, free: 1.586 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.01363, allocations: 66 kB / 277.2 MB, free: 1.512 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.01376, allocations: 128.9 kB / 277.3 MB, free: 1.363 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002014/0.01397, allocations: 159.7 kB / 277.5 MB, free: 1.188 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.01397, allocations: 0 / 277.5 MB, free: 1.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005282/0.0145, allocations: 313.4 kB / 277.8 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.01454, allocations: 37.69 kB / 277.8 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.01455, allocations: 0 / 277.8 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002019/0.01475, allocations: 67.55 kB / 277.9 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.01493, allocations: 43.97 kB / 277.9 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006161/0.01554, allocations: 0.8428 MB / 278.8 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.01572, allocations: 24.08 kB / 278.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.01575, allocations: 11.98 kB / 278.8 MB, free: 15.79 MB / 266.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.0001291/0.01588, allocations: 172.5 kB / 279 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.076e-05/0.01593, allocations: 31.86 kB / 279 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.034e-05/0.01599, allocations: 29.91 kB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.01599, allocations: 7.984 kB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.016, allocations: 0 / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.016, allocations: 0 / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007277/0.01673, allocations: 0.5038 MB / 279.5 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.01673, allocations: 4 kB / 279.6 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.0169, allocations: 39.91 kB / 279.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001432/0.01704, allocations: 51.64 kB / 279.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.01707, allocations: 11.98 kB / 279.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004446/0.01751, allocations: 0.8428 MB / 280.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01751, allocations: 0 / 280.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005443/0.01806, allocations: 413.9 kB / 280.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.01814, allocations: 39.83 kB / 280.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.01817, allocations: 4 kB / 280.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.01834, allocations: 23.97 kB / 281 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.01843, allocations: 35.88 kB / 281 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.01844, allocations: 4 kB / 281 MB, free: 13.49 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.557e-05/0.01854, allocations: 171.3 kB / 281.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.01854, allocations: 0 / 281.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004026/0.01894, allocations: 79.94 kB / 281.3 MB, free: 13.24 MB / 266.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.0002041/0.01914, allocations: 126.1 kB / 281.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004208/0.01956, allocations: 240.7 kB / 281.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01957, allocations: 0 / 281.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004753/0.02004, allocations: 101 kB / 281.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.02048, allocations: 60.19 kB / 281.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.02175, allocations: 0.5442 MB / 282.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.171e-05/0.02182, allocations: 84.31 kB / 282.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.02192, allocations: 17.95 kB / 282.4 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.02207, allocations: 110.2 kB / 282.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.02207, allocations: 4 kB / 282.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of Templates: time 0.008006/0.03008, allocations: 4.022 MB / 286.5 MB, free: 7.926 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.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.834373702760786]