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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=4000,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=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008704/0.0008704, allocations: 95.92 kB / 17.3 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008042/0.0008043, allocations: 178.4 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004969/0.0004969, allocations: 16 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1166, allocations: 47.57 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002546/0.1191, allocations: 1.865 MB / 330.8 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.1206, allocations: 0.7334 MB / 331.5 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.996e-05/0.1207, allocations: 4 kB / 331.6 MB, free: 1.145 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.1209, allocations: 23.78 kB / 331.6 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.1211, allocations: 59.59 kB / 331.6 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.1214, allocations: 91.84 kB / 331.7 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.1217, allocations: 263.4 kB / 332 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.1218, allocations: 48.38 kB / 332 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.122, allocations: 99.56 kB / 332.1 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001724/0.1222, allocations: 115.5 kB / 332.2 MB, free: 468 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.005e-05/0.1222, allocations: 12 kB / 332.3 MB, free: 456 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.1224, allocations: 59.95 kB / 332.3 MB, free: 396 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.445e-05/0.1225, allocations: 39.84 kB / 332.3 MB, free: 356 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.1226, allocations: 141.1 kB / 332.5 MB, free: 208 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00029/0.1229, allocations: 259.3 kB / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1229, allocations: 4 kB / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1229, allocations: 0 / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1229, allocations: 0 / 332.7 MB, free: 15.95 MB / 286.1 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.0009555/0.1239, allocations: 0.5355 MB / 333.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.1239, allocations: 8.031 kB / 333.3 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.512e-05/0.124, allocations: 28.59 kB / 333.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.1243, allocations: 231.9 kB / 333.5 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.1243, allocations: 12.38 kB / 333.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.1244, allocations: 20.38 kB / 333.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005168/0.1249, allocations: 247.5 kB / 333.8 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1249, allocations: 4 kB / 333.8 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.92e-05/0.1249, allocations: 4 kB / 333.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.125, allocations: 4 kB / 333.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005098/0.1255, allocations: 211.8 kB / 334 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.1265, allocations: 0.6875 MB / 334.7 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005857/0.1271, allocations: 214.4 kB / 334.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/0.1274, allocations: 104.8 kB / 335 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.1274, allocations: 7.984 kB / 335 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004091/0.1278, allocations: 179.5 kB / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.124e-06/0.1278, allocations: 0 / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002551/0.1304, allocations: 1.214 MB / 336.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.1304, allocations: 59.41 kB / 336.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.1307, allocations: 190.8 kB / 336.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.1307, allocations: 37.69 kB / 336.7 MB, free: 11.65 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1308, allocations: 136.3 kB / 336.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.054e-05/0.1309, allocations: 86.75 kB / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.519e-05/0.131, allocations: 37.7 kB / 337 MB, free: 11.39 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1311, allocations: 338.7 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002774/0.1314, allocations: 116.3 kB / 337.4 MB, free: 10.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.1317, allocations: 152.3 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005076/0.1322, allocations: 262.7 kB / 337.8 MB, free: 10.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1322, allocations: 0 / 337.8 MB, free: 10.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008688/0.1331, allocations: 413 kB / 338.2 MB, free: 10.08 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.965e-05/0.1332, allocations: 33.7 kB / 338.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1332, allocations: 3.938 kB / 338.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002442/0.1334, allocations: 76.8 kB / 338.3 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.1337, allocations: 51.91 kB / 338.4 MB, free: 9.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004878/0.1342, allocations: 0.6109 MB / 339 MB, free: 9.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.1344, allocations: 43.98 kB / 339 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.954e-05/0.1345, allocations: 16.06 kB / 339.1 MB, free: 9.211 MB / 286.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 (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.0001607/0.1347, allocations: 146.1 kB / 339.2 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.1347, allocations: 19.81 kB / 339.2 MB, free: 9.039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.126e-05/0.1348, allocations: 29.86 kB / 339.2 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1348, allocations: 0 / 339.2 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1348, allocations: 7.938 kB / 339.2 MB, free: 9 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1348, allocations: 0 / 339.2 MB, free: 9 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.1359, allocations: 0.6941 MB / 339.9 MB, free: 8.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1359, allocations: 4 kB / 339.9 MB, free: 8.242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.1361, allocations: 43.97 kB / 340 MB, free: 8.199 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.1363, allocations: 68.8 kB / 340.1 MB, free: 8.129 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.1364, allocations: 8 kB / 340.1 MB, free: 8.121 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004827/0.1369, allocations: 0.6071 MB / 340.7 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1369, allocations: 0 / 340.7 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.138, allocations: 0.5271 MB / 341.2 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.1381, allocations: 116.8 kB / 341.3 MB, free: 6.809 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.117e-05/0.1381, allocations: 8 kB / 341.3 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.1384, allocations: 39.97 kB / 341.4 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.1385, allocations: 31.94 kB / 341.4 MB, free: 6.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.1385, allocations: 11.94 kB / 341.4 MB, free: 6.719 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001248/0.1387, allocations: 135.5 kB / 341.5 MB, free: 6.586 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1387, allocations: 0 / 341.5 MB, free: 6.586 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003715/0.139, allocations: 72 kB / 341.6 MB, free: 6.516 MB / 286.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 (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.000249/0.1393, allocations: 131.1 kB / 341.7 MB, free: 6.379 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007948/0.1401, allocations: 340.7 kB / 342.1 MB, free: 6.035 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1401, allocations: 0 / 342.1 MB, free: 6.035 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.1405, allocations: 147.8 kB / 342.2 MB, free: 5.891 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.1409, allocations: 44.16 kB / 342.3 MB, free: 5.848 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.1424, allocations: 0.8181 MB / 343.1 MB, free: 5.008 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/0.1428, allocations: 0.7477 MB / 343.8 MB, free: 4.234 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001073/0.1429, allocations: 17.95 kB / 343.8 MB, free: 4.215 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.069e-05/0.143, allocations: 23.38 kB / 343.9 MB, free: 4.191 MB / 286.1 MB Notification: Performance of SimCode: time 2.164e-06/0.143, allocations: 0 / 343.9 MB, free: 4.191 MB / 286.1 MB Notification: Performance of Templates: time 0.007577/0.1506, allocations: 3.417 MB / 347.3 MB, free: 0.7773 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (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) 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","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches