Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001294/0.001294, allocations: 115.1 kB / 18.45 MB, free: 4.605 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.001393/0.001393, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 230.6 MB / 254.8 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 59.91 kB / 374.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1092, allocations: 53.33 MB / 427.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004443/0.1136, allocations: 2.297 MB / 429.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.1152, allocations: 0.8723 MB / 430.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.1154, allocations: 4 kB / 430.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002759/0.1156, allocations: 51.56 kB / 430.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002899/0.1159, allocations: 107.2 kB / 430.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.1162, allocations: 83.83 kB / 430.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003699/0.1165, allocations: 299.3 kB / 431.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.1167, allocations: 44.39 kB / 431.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.117, allocations: 131.5 kB / 431.3 MB, free: 436 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.1172, allocations: 139.4 kB / 431.5 MB, free: 296 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.133e-05/0.1172, allocations: 20 kB / 431.5 MB, free: 276 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001711/0.1174, allocations: 83.97 kB / 431.6 MB, free: 192 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.346e-05/0.1175, allocations: 51.83 kB / 431.6 MB, free: 140 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.1176, allocations: 119.4 kB / 431.8 MB, free: 20 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.1181, allocations: 314.9 kB / 432.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1181, allocations: 0 / 432.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1181, allocations: 8 kB / 432.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1181, allocations: 3.938 kB / 432.1 MB, free: 15.7 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001205/0.1193, allocations: 0.5817 MB / 432.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.1193, allocations: 8.031 kB / 432.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002607/0.1196, allocations: 40.73 kB / 432.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005535/0.1202, allocations: 252.8 kB / 432.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.1202, allocations: 16.38 kB / 433 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.234e-05/0.1202, allocations: 16.38 kB / 433 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.1208, allocations: 235.2 kB / 433.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.1208, allocations: 0 / 433.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.1208, allocations: 8 kB / 433.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.1208, allocations: 7.984 kB / 433.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005222/0.1213, allocations: 179.9 kB / 433.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.1226, allocations: 0.6487 MB / 434.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006597/0.1233, allocations: 190.5 kB / 434.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002615/0.1235, allocations: 96.75 kB / 434.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.1236, allocations: 0 / 434.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004066/0.124, allocations: 167.3 kB / 434.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.533e-06/0.124, allocations: 0 / 434.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003067/0.127, allocations: 1.163 MB / 435.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.1271, allocations: 59.39 kB / 435.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.1274, allocations: 196.4 kB / 435.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.1274, allocations: 41.64 kB / 435.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1276, allocations: 140.5 kB / 436.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.609e-05/0.1276, allocations: 91.22 kB / 436.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.1277, allocations: 57.69 kB / 436.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1279, allocations: 334.8 kB / 436.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.1282, allocations: 95.94 kB / 436.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.1285, allocations: 155.1 kB / 436.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005364/0.1291, allocations: 250 kB / 437 MB, free: 10.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1291, allocations: 0 / 437 MB, free: 10.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0009018/0.13, allocations: 369.8 kB / 437.4 MB, free: 9.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.876e-05/0.13, allocations: 37.69 kB / 437.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.13, allocations: 7.938 kB / 437.5 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002351/0.1303, allocations: 56.77 kB / 437.5 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.1305, allocations: 52.02 kB / 437.6 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/0.1327, allocations: 1.801 MB / 439.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.133, allocations: 35.95 kB / 439.4 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.133, allocations: 11.98 kB / 439.4 MB, free: 7.82 MB / 366.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 (31): * Single equations (assignments): 29 * 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.0001696/0.1332, allocations: 141.8 kB / 439.5 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.1332, allocations: 23.84 kB / 439.6 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.901e-05/0.1333, allocations: 26.56 kB / 439.6 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1333, allocations: 7.938 kB / 439.6 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1333, allocations: 3.938 kB / 439.6 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1333, allocations: 3.984 kB / 439.6 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.1346, allocations: 0.6909 MB / 440.3 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1346, allocations: 0 / 440.3 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.1348, allocations: 43.97 kB / 440.3 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001495/0.135, allocations: 56.75 kB / 440.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.135, allocations: 4.062 kB / 440.4 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00189/0.1369, allocations: 1.645 MB / 442 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1369, allocations: 0 / 442 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.1381, allocations: 0.5057 MB / 442.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.1382, allocations: 117 kB / 442.7 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.076e-05/0.1383, allocations: 8 kB / 442.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.1386, allocations: 35.89 kB / 442.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.1387, allocations: 71.89 kB / 442.8 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.1388, allocations: 11.94 kB / 442.8 MB, free: 4.184 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001876/0.1389, allocations: 143.2 kB / 442.9 MB, free: 4.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1389, allocations: 0 / 442.9 MB, free: 4.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000441/0.1394, allocations: 79.92 kB / 443 MB, free: 3.965 MB / 366.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 (21): * Single equations (assignments): 18 * 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.001412/0.1408, allocations: 375.2 kB / 443.4 MB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.1419, allocations: 437.7 kB / 443.8 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1419, allocations: 0 / 443.8 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004912/0.1424, allocations: 254.5 kB / 444.1 MB, free: 3.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.1428, allocations: 44.09 kB / 444.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.1443, allocations: 0.6879 MB / 444.8 MB, free: 2.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.1448, allocations: 0.7557 MB / 445.5 MB, free: 1.465 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.665e-05/0.1449, allocations: 27.42 kB / 445.6 MB, free: 1.438 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1449, allocations: 0 / 445.6 MB, free: 1.438 MB / 366.1 MB Notification: Performance of Templates: time 0.2085/0.3533, allocations: 4.376 MB / 449.9 MB, free: 23.19 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.145657343993662]