Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001388/0.001388, allocations: 77.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001476/0.001476, allocations: 160.8 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 177.1 MB / 204.7 MB, free: 8.949 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 65.8 kB / 325.5 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1094, allocations: 53.38 MB / 378.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.005398/0.1148, allocations: 2.199 MB / 381.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.1169, allocations: 0.8374 MB / 381.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.1171, allocations: 7.938 kB / 381.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002975/0.1174, allocations: 39.59 kB / 382 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004104/0.1178, allocations: 115.2 kB / 382.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.1181, allocations: 87.81 kB / 382.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004815/0.1186, allocations: 295.5 kB / 382.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.1188, allocations: 32.58 kB / 382.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003378/0.1191, allocations: 139.5 kB / 382.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/0.1194, allocations: 123.5 kB / 382.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.967e-05/0.1195, allocations: 24 kB / 382.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002185/0.1197, allocations: 83.91 kB / 382.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.1198, allocations: 59.77 kB / 382.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.12, allocations: 95.56 kB / 383 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005843/0.1206, allocations: 322.7 kB / 383.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1206, allocations: 0 / 383.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1206, allocations: 0 / 383.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1206, allocations: 0 / 383.3 MB, free: 11.01 MB / 350.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.001363/0.1219, allocations: 0.5181 MB / 383.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.122, allocations: 11.98 kB / 383.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002362/0.1222, allocations: 36.78 kB / 383.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.1227, allocations: 196 kB / 384.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.1228, allocations: 12.38 kB / 384.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.351e-05/0.1228, allocations: 20.38 kB / 384.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006682/0.1235, allocations: 223.3 kB / 384.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.1235, allocations: 7.984 kB / 384.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.782e-05/0.1236, allocations: 12 kB / 384.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1236, allocations: 7.938 kB / 384.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000678/0.1243, allocations: 175.8 kB / 384.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.1256, allocations: 0.5353 MB / 385.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000806/0.1264, allocations: 190.4 kB / 385.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003601/0.1268, allocations: 98.83 kB / 385.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.1268, allocations: 4 kB / 385.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005086/0.1273, allocations: 163.2 kB / 385.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.505e-06/0.1273, allocations: 0 / 385.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.003471/0.1308, allocations: 0.9465 MB / 386.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.1308, allocations: 55.41 kB / 386.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/0.1312, allocations: 203.2 kB / 386.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.024e-05/0.1313, allocations: 33.7 kB / 386.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.1314, allocations: 136.5 kB / 386.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.1315, allocations: 99.2 kB / 387 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.1317, allocations: 57.64 kB / 387 MB, free: 7.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.1319, allocations: 334.8 kB / 387.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004908/0.1323, allocations: 125.6 kB / 387.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004442/0.1328, allocations: 174.1 kB / 387.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007325/0.1335, allocations: 242 kB / 387.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1335, allocations: 0 / 387.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00127/0.1348, allocations: 411.4 kB / 388.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.526e-05/0.1349, allocations: 33.7 kB / 388.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1349, allocations: 0 / 388.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.1351, allocations: 56.83 kB / 388.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003169/0.1355, allocations: 51.91 kB / 388.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002596/0.1381, allocations: 1.665 MB / 390.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004086/0.1385, allocations: 32 kB / 390.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.1385, allocations: 12 kB / 390.1 MB, free: 3.793 MB / 350.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.0002325/0.1387, allocations: 153.7 kB / 390.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.044e-05/0.1388, allocations: 27.86 kB / 390.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.952e-05/0.1389, allocations: 26.66 kB / 390.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.1389, allocations: 3.938 kB / 390.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1389, allocations: 7.984 kB / 390.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1389, allocations: 0 / 390.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.1405, allocations: 0.589 MB / 390.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.1405, allocations: 4 kB / 390.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003368/0.1408, allocations: 47.91 kB / 391 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002075/0.1411, allocations: 48.83 kB / 391 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/0.1411, allocations: 8 kB / 391 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00222/0.1433, allocations: 1.511 MB / 392.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.1433, allocations: 8.016 kB / 392.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.1448, allocations: 0.5087 MB / 393.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.1449, allocations: 31.92 kB / 393.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/0.145, allocations: 8 kB / 393.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.1454, allocations: 36.02 kB / 393.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.1456, allocations: 75.86 kB / 393.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.1456, allocations: 4 kB / 393.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002142/0.1458, allocations: 155.5 kB / 393.4 MB, free: 380 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1458, allocations: 0 / 393.4 MB, free: 380 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006836/0.1465, allocations: 72 kB / 393.4 MB, free: 308 kB / 350.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.001788/0.1483, allocations: 385 kB / 393.8 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.1496, allocations: 464.1 kB / 394.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1496, allocations: 4.125 kB / 394.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006519/0.1503, allocations: 270.3 kB / 394.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006218/0.1509, allocations: 51.14 kB / 394.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.1528, allocations: 0.6602 MB / 395.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002006/0.153, allocations: 138.2 kB / 395.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001647/0.1531, allocations: 33.92 kB / 395.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.901e-05/0.1532, allocations: 28.48 kB / 395.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1532, allocations: 0 / 395.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of Templates: time 0.01341/0.1666, allocations: 4.5 MB / 400 MB, free: 9.879 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.432213429943658]