Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001306/0.001306, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.476/1.476, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002724/0.002724, allocations: 64.39 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1248, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00413/0.1289, allocations: 2.276 MB / 360.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.1306, allocations: 0.8684 MB / 361.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.1307, allocations: 3.938 kB / 361.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002588/0.131, allocations: 51.62 kB / 361.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002919/0.1313, allocations: 107.2 kB / 361.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.1316, allocations: 95.75 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003476/0.1319, allocations: 283.4 kB / 362.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.1321, allocations: 64.25 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002459/0.1324, allocations: 135.5 kB / 362.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000205/0.1326, allocations: 131.5 kB / 362.4 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.385e-05/0.1327, allocations: 24 kB / 362.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.1328, allocations: 79.98 kB / 362.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.33e-05/0.1329, allocations: 63.75 kB / 362.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.1331, allocations: 119.4 kB / 362.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003941/0.1335, allocations: 307.3 kB / 363 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1335, allocations: 0 / 363 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1335, allocations: 0 / 363 MB, free: 9.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1335, allocations: 0 / 363 MB, free: 9.352 MB / 302.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.001143/0.1347, allocations: 0.59 MB / 363.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1347, allocations: 8.031 kB / 363.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.1349, allocations: 36.64 kB / 363.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.1353, allocations: 252.6 kB / 363.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.1353, allocations: 16.31 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.1354, allocations: 24.31 kB / 363.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005007/0.1359, allocations: 231.5 kB / 364.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.1359, allocations: 0 / 364.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.1359, allocations: 12 kB / 364.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1359, allocations: 4 kB / 364.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005067/0.1365, allocations: 179.6 kB / 364.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.1375, allocations: 0.6525 MB / 365 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005982/0.1381, allocations: 202.4 kB / 365.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002685/0.1384, allocations: 108.8 kB / 365.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.1385, allocations: 0 / 365.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004476/0.1389, allocations: 171.2 kB / 365.5 MB, free: 6.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 3.907e-06/0.1389, allocations: 3.984 kB / 365.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002714/0.1416, allocations: 1.157 MB / 366.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.1417, allocations: 55.41 kB / 366.7 MB, free: 5.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.142, allocations: 210.2 kB / 366.9 MB, free: 5.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.142, allocations: 33.7 kB / 366.9 MB, free: 5.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.1421, allocations: 132.4 kB / 367 MB, free: 4.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.546e-05/0.1422, allocations: 94.73 kB / 367.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.1423, allocations: 57.69 kB / 367.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1425, allocations: 330.8 kB / 367.5 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.1428, allocations: 99.94 kB / 367.6 MB, free: 4.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.1431, allocations: 140.6 kB / 367.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005436/0.1437, allocations: 242.8 kB / 368 MB, free: 3.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1437, allocations: 0 / 368 MB, free: 3.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008804/0.1446, allocations: 377.6 kB / 368.4 MB, free: 3.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.518e-05/0.1447, allocations: 41.69 kB / 368.4 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1447, allocations: 0 / 368.4 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002147/0.1449, allocations: 52.78 kB / 368.5 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.1451, allocations: 55.89 kB / 368.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002144/0.1473, allocations: 1.805 MB / 370.3 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.1476, allocations: 35.95 kB / 370.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.1476, allocations: 8 kB / 370.4 MB, free: 1.465 MB / 302.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.0001858/0.1478, allocations: 149.8 kB / 370.5 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.402e-05/0.1479, allocations: 23.8 kB / 370.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.303e-05/0.1479, allocations: 26.56 kB / 370.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1479, allocations: 4 kB / 370.6 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.148, allocations: 8 kB / 370.6 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.148, allocations: 3.984 kB / 370.6 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.1492, allocations: 0.6904 MB / 371.3 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1492, allocations: 0 / 371.3 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.1494, allocations: 47.91 kB / 371.3 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.1496, allocations: 48.78 kB / 371.4 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.1497, allocations: 15.92 kB / 371.4 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1653/0.315, allocations: 1.639 MB / 373 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.315, allocations: 0.5938 kB / 373 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.3161, allocations: 0.5059 MB / 373.5 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.3162, allocations: 114 kB / 373.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.069e-05/0.3162, allocations: 7.484 kB / 373.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.3165, allocations: 33.34 kB / 373.7 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/0.3167, allocations: 71.59 kB / 373.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.3167, allocations: 7.203 kB / 373.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.3169, allocations: 150.4 kB / 373.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3169, allocations: 0 / 373.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004329/0.3173, allocations: 72.05 kB / 374 MB, free: 19.06 MB / 302.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.001254/0.3186, allocations: 376.4 kB / 374.3 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009593/0.3195, allocations: 461.7 kB / 374.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3196, allocations: 0 / 374.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.32, allocations: 267.3 kB / 375 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.3204, allocations: 42.31 kB / 375.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.3217, allocations: 0.6906 MB / 375.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.3219, allocations: 0.7514 MB / 376.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.822e-05/0.322, allocations: 29.06 kB / 376.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.322, allocations: 0 / 376.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of Templates: time 0.007952/0.33, allocations: 4.349 MB / 380.9 MB, free: 16.95 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches