Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008524/0.0008524, allocations: 94.56 kB / 17.3 MB, free: 6.078 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.001053/0.001054, allocations: 180.2 kB / 18.21 MB, free: 5.391 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.619/1.619, 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.0004458/0.0004458, allocations: 12 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1124, allocations: 47.57 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002414/0.1148, allocations: 1.912 MB / 330.9 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.116, allocations: 0.7179 MB / 331.6 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.276e-05/0.1161, allocations: 7.938 kB / 331.6 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.1163, allocations: 19.84 kB / 331.6 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001741/0.1165, allocations: 59.59 kB / 331.7 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.1168, allocations: 83.86 kB / 331.7 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.1171, allocations: 247.4 kB / 332 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.1172, allocations: 60.34 kB / 332 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.1174, allocations: 95.58 kB / 332.1 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.1176, allocations: 107.5 kB / 332.2 MB, free: 460 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.986e-05/0.1176, allocations: 12 kB / 332.3 MB, free: 448 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.1177, allocations: 59.89 kB / 332.3 MB, free: 388 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.837e-05/0.1178, allocations: 39.83 kB / 332.4 MB, free: 348 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.1179, allocations: 125.2 kB / 332.5 MB, free: 216 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003003/0.1182, allocations: 263.4 kB / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1183, allocations: 0 / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1183, allocations: 0 / 332.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1183, 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007673/0.1191, allocations: 491.2 kB / 333.2 MB, free: 15.42 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1191, allocations: 8.031 kB / 333.2 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.027e-05/0.1192, allocations: 24.66 kB / 333.2 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.1194, allocations: 235.8 kB / 333.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.1195, allocations: 20.75 kB / 333.5 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.1195, allocations: 28.27 kB / 333.5 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.1199, allocations: 222 kB / 333.7 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.12, allocations: 4 kB / 333.7 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.12, allocations: 12 kB / 333.8 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.12, allocations: 4 kB / 333.8 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000343/0.1204, allocations: 169 kB / 333.9 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.1215, allocations: 0.7837 MB / 334.7 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/0.1219, allocations: 138.4 kB / 334.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.1221, allocations: 76.81 kB / 334.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.1221, allocations: 0 / 334.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.1221, allocations: 38.56 kB / 335 MB, free: 13.54 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 1.102e-06/0.1221, allocations: 0 / 335 MB, free: 13.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.001917/0.1241, allocations: 1.009 MB / 336 MB, free: 12.42 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.1241, allocations: 55.41 kB / 336 MB, free: 12.35 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.1243, allocations: 210.7 kB / 336.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.1244, allocations: 29.7 kB / 336.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.1245, allocations: 144.2 kB / 336.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.788e-05/0.1245, allocations: 74.98 kB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.406e-05/0.1246, allocations: 29.7 kB / 336.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1247, allocations: 330.8 kB / 336.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.1249, allocations: 79.95 kB / 336.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.1251, allocations: 119.6 kB / 337 MB, free: 11.31 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.1253, allocations: 168.7 kB / 337.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1253, allocations: 0 / 337.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000513/0.1259, allocations: 295.8 kB / 337.5 MB, free: 10.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.1259, allocations: 4 kB / 337.5 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1259, allocations: 4 kB / 337.5 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000251/0.1262, allocations: 68.81 kB / 337.5 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.1263, allocations: 39.92 kB / 337.6 MB, free: 10.72 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004783/0.1268, allocations: 0.6187 MB / 338.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.127, allocations: 32 kB / 338.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.127, allocations: 4 kB / 338.2 MB, free: 10.04 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001307/0.1272, allocations: 141.6 kB / 338.4 MB, free: 9.895 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.536e-05/0.1272, allocations: 23.7 kB / 338.4 MB, free: 9.871 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.929e-05/0.1273, allocations: 21.88 kB / 338.4 MB, free: 9.848 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.1273, allocations: 7.938 kB / 338.4 MB, free: 9.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.1273, allocations: 0 / 338.4 MB, free: 9.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1273, allocations: 7.875 kB / 338.4 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008274/0.1282, allocations: 0.61 MB / 339 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1282, allocations: 48 / 339 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.1284, allocations: 35.91 kB / 339.1 MB, free: 9.121 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001593/0.1285, allocations: 68.81 kB / 339.1 MB, free: 9.051 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.1285, allocations: 4.062 kB / 339.2 MB, free: 9.047 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004279/0.129, allocations: 0.6225 MB / 339.8 MB, free: 8.398 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.129, allocations: 7.969 kB / 339.8 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.1296, allocations: 417.7 kB / 340.2 MB, free: 7.957 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.273e-05/0.1297, allocations: 108.9 kB / 340.3 MB, free: 7.832 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/0.1297, allocations: 4 kB / 340.3 MB, free: 7.828 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.1299, allocations: 31.97 kB / 340.3 MB, free: 7.797 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.466e-05/0.13, allocations: 19.97 kB / 340.4 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.13, allocations: 8 kB / 340.4 MB, free: 7.77 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001277/0.1301, allocations: 152 kB / 340.5 MB, free: 7.621 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1301, allocations: 0 / 340.5 MB, free: 7.621 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003147/0.1305, allocations: 71.92 kB / 340.6 MB, free: 7.551 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001836/0.1307, allocations: 123.2 kB / 340.7 MB, free: 7.422 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004601/0.1311, allocations: 215.6 kB / 340.9 MB, free: 7.211 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1311, allocations: 0 / 340.9 MB, free: 7.211 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002111/0.1314, allocations: 99.89 kB / 341 MB, free: 7.113 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.1318, allocations: 36.02 kB / 341 MB, free: 7.078 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.1331, allocations: 0.85 MB / 341.9 MB, free: 6.203 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.1334, allocations: 0.7326 MB / 342.6 MB, free: 5.445 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.071e-05/0.1335, allocations: 25.89 kB / 342.6 MB, free: 5.418 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.723e-05/0.1336, allocations: 15.44 kB / 342.7 MB, free: 5.402 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1336, allocations: 0 / 342.7 MB, free: 5.402 MB / 286.1 MB Notification: Performance of Templates: time 0.006114/0.1397, allocations: 2.895 MB / 345.6 MB, free: 2.508 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches