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.001623/0.001623, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001842/0.001842, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.572/1.572, allocations: 205.1 MB / 225.1 MB, free: 12.29 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.001368/0.001368, allocations: 43.92 kB / 281.3 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09682, allocations: 46.63 MB / 328 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003702/0.1006, allocations: 2.159 MB / 330.1 MB, free: 2.289 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.102, allocations: 0.737 MB / 330.8 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.1021, allocations: 4 kB / 330.9 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.1023, allocations: 23.73 kB / 330.9 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.1025, allocations: 75.41 kB / 330.9 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.1029, allocations: 107.7 kB / 331.1 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003656/0.1033, allocations: 279.4 kB / 331.3 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.1034, allocations: 52.36 kB / 331.4 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.1036, allocations: 123.5 kB / 331.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.1038, allocations: 119.5 kB / 331.6 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.1038, allocations: 24 kB / 331.6 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001359/0.104, allocations: 67.95 kB / 331.7 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.255e-05/0.1041, allocations: 59.75 kB / 331.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.1042, allocations: 111.5 kB / 331.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003158/0.1045, allocations: 279.4 kB / 332.1 MB, free: 248 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1045, allocations: 0 / 332.1 MB, free: 248 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1045, allocations: 0 / 332.1 MB, free: 248 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1046, allocations: 0 / 332.1 MB, free: 248 kB / 270.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.001047/0.1056, allocations: 0.5626 MB / 332.7 MB, free: 15.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1057, allocations: 15.89 kB / 332.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.127e-05/0.1057, allocations: 24.66 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/0.106, allocations: 235.9 kB / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.106, allocations: 16.36 kB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.298e-05/0.1061, allocations: 20.38 kB / 333 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005166/0.1066, allocations: 235.5 kB / 333.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.1067, allocations: 7.938 kB / 333.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.1067, allocations: 8 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1067, allocations: 8 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004892/0.1072, allocations: 191.8 kB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.1083, allocations: 0.672 MB / 334.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006062/0.1089, allocations: 210.3 kB / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/0.1091, allocations: 96.81 kB / 334.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.1092, allocations: 7.938 kB / 334.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004394/0.1096, allocations: 159.5 kB / 334.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.174e-06/0.1096, allocations: 0 / 334.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002499/0.1121, allocations: 1.164 MB / 335.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.1122, allocations: 55.41 kB / 335.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.1124, allocations: 190.9 kB / 336 MB, free: 12.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.1124, allocations: 33.64 kB / 336 MB, free: 12.04 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.239e-05/0.1125, allocations: 136.3 kB / 336.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.76e-05/0.1126, allocations: 94.75 kB / 336.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.1127, allocations: 61.69 kB / 336.3 MB, free: 11.74 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1129, allocations: 330.8 kB / 336.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002841/0.1132, allocations: 112.2 kB / 336.7 MB, free: 11.3 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.1135, allocations: 152 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005031/0.114, allocations: 242.8 kB / 337.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.114, allocations: 0 / 337.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008353/0.1148, allocations: 400.9 kB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.1149, allocations: 37.69 kB / 337.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1149, allocations: 3.938 kB / 337.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.1151, allocations: 76.75 kB / 337.6 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/0.1154, allocations: 52.02 kB / 337.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005148/0.1159, allocations: 0.607 MB / 338.3 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.1162, allocations: 32 kB / 338.3 MB, free: 9.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.1162, allocations: 12 kB / 338.3 MB, free: 9.625 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.0001587/0.1164, allocations: 150.1 kB / 338.5 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.802e-05/0.1164, allocations: 23.72 kB / 338.5 MB, free: 9.445 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.961e-05/0.1165, allocations: 21.88 kB / 338.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.1165, allocations: 4 kB / 338.5 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1165, allocations: 0 / 338.5 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1165, allocations: 3.984 kB / 338.5 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.1177, allocations: 0.6747 MB / 339.2 MB, free: 8.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1177, allocations: 3.984 kB / 339.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.1179, allocations: 39.91 kB / 339.3 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001753/0.1181, allocations: 68.81 kB / 339.3 MB, free: 8.566 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.1181, allocations: 7.984 kB / 339.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004562/0.1186, allocations: 0.6071 MB / 339.9 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1186, allocations: 7.938 kB / 339.9 MB, free: 7.918 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1196, allocations: 0.5153 MB / 340.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.1198, allocations: 108.9 kB / 340.6 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.671e-05/0.1198, allocations: 8 kB / 340.6 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002479/0.1201, allocations: 27.97 kB / 340.6 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.1202, allocations: 35.94 kB / 340.6 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.1202, allocations: 8 kB / 340.6 MB, free: 7.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.1203, allocations: 139.2 kB / 340.8 MB, free: 7.043 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1203, allocations: 4 kB / 340.8 MB, free: 7.039 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003554/0.1207, allocations: 68 kB / 340.9 MB, free: 6.973 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.0002139/0.1209, allocations: 131.1 kB / 341 MB, free: 6.836 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008118/0.1217, allocations: 332.8 kB / 341.3 MB, free: 6.5 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.1218, allocations: 4.125 kB / 341.3 MB, free: 6.496 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.1221, allocations: 139.8 kB / 341.4 MB, free: 6.359 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.1225, allocations: 39.92 kB / 341.5 MB, free: 6.32 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.1239, allocations: 0.6842 MB / 342.2 MB, free: 5.605 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.1243, allocations: 0.7439 MB / 342.9 MB, free: 4.836 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.429e-05/0.1243, allocations: 23.44 kB / 342.9 MB, free: 4.812 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1244, allocations: 0 / 342.9 MB, free: 4.812 MB / 286.1 MB Notification: Performance of Templates: time 0.005911/0.1303, allocations: 3.791 MB / 346.7 MB, free: 1.012 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches