Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.0008184/0.0008185, allocations: 86.61 kB / 16.31 MB, free: 6.449 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.001403/0.001403, allocations: 184.6 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.3 MB / 241.2 MB, free: 5.398 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.000279, allocations: 7.688 kB / 300.8 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1076, allocations: 50.42 MB / 351.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002605/0.1103, allocations: 1.805 MB / 353 MB, free: 9.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.1114, allocations: 0.6587 MB / 353.7 MB, free: 9.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.807e-05/0.1115, allocations: 4 kB / 353.7 MB, free: 9.211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.1117, allocations: 19.84 kB / 353.7 MB, free: 9.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.1118, allocations: 67.53 kB / 353.8 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.1121, allocations: 79.84 kB / 353.9 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000252/0.1124, allocations: 235.5 kB / 354.1 MB, free: 8.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001362/0.1125, allocations: 48.77 kB / 354.1 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.1128, allocations: 103.6 kB / 354.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.113, allocations: 119.5 kB / 354.4 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.113, allocations: 8 kB / 354.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.1131, allocations: 51.95 kB / 354.4 MB, free: 8.484 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.837e-05/0.1132, allocations: 39.83 kB / 354.5 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.582e-05/0.1133, allocations: 69.58 kB / 354.5 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.1137, allocations: 187.5 kB / 354.7 MB, free: 8.188 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1137, allocations: 0 / 354.7 MB, free: 8.188 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1137, allocations: 0 / 354.7 MB, free: 8.188 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1137, allocations: 4 kB / 354.7 MB, free: 8.184 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.000945/0.1146, allocations: 0.5298 MB / 355.2 MB, free: 7.602 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1147, allocations: 8.031 kB / 355.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.179e-05/0.1148, allocations: 27.77 kB / 355.3 MB, free: 7.566 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.1151, allocations: 242.6 kB / 355.5 MB, free: 7.289 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.1152, allocations: 19.94 kB / 355.5 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.409e-05/0.1152, allocations: 24 kB / 355.6 MB, free: 7.246 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.1157, allocations: 243.1 kB / 355.8 MB, free: 6.996 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.1157, allocations: 4 kB / 355.8 MB, free: 6.992 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.1157, allocations: 7.938 kB / 355.8 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1157, allocations: 4 kB / 355.8 MB, free: 6.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000465/0.1162, allocations: 215.8 kB / 356 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.1173, allocations: 0.6758 MB / 356.7 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000579/0.1179, allocations: 206.5 kB / 356.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002334/0.1181, allocations: 108.8 kB / 357 MB, free: 5.719 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.1182, allocations: 3.984 kB / 357 MB, free: 5.715 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003907/0.1186, allocations: 175.5 kB / 357.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.1186, allocations: 0 / 357.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002369/0.121, allocations: 1.207 MB / 358.4 MB, free: 4.211 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.121, allocations: 59.34 kB / 358.4 MB, free: 4.141 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1212, allocations: 195 kB / 358.6 MB, free: 3.938 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.1212, allocations: 33.7 kB / 358.7 MB, free: 3.898 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.1213, allocations: 136.3 kB / 358.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.681e-05/0.1214, allocations: 86.8 kB / 358.9 MB, free: 3.676 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.1214, allocations: 4 kB / 358.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1216, allocations: 330.8 kB / 359.2 MB, free: 3.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002734/0.1218, allocations: 116.2 kB / 359.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000385/0.1222, allocations: 156.2 kB / 359.5 MB, free: 3.059 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003394/0.1226, allocations: 139.1 kB / 359.6 MB, free: 2.918 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1226, allocations: 0 / 359.6 MB, free: 2.918 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007975/0.1234, allocations: 414.2 kB / 360 MB, free: 2.5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.1234, allocations: 29.7 kB / 360.1 MB, free: 2.465 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1235, allocations: 0 / 360.1 MB, free: 2.465 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002333/0.1237, allocations: 76.88 kB / 360.1 MB, free: 2.387 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.1239, allocations: 51.91 kB / 360.2 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004891/0.1244, allocations: 0.6147 MB / 360.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.1247, allocations: 48.05 kB / 360.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.1247, allocations: 12 kB / 360.8 MB, free: 1.637 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 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001416/0.1249, allocations: 145.1 kB / 361 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.1249, allocations: 19.81 kB / 361 MB, free: 1.469 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.807e-05/0.125, allocations: 33.86 kB / 361 MB, free: 1.438 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.125, allocations: 0 / 361 MB, free: 1.438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.125, allocations: 7.953 kB / 361.1 MB, free: 1.43 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.125, allocations: 3.938 kB / 361.1 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.1261, allocations: 0.6984 MB / 361.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1261, allocations: 0 / 361.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.1263, allocations: 43.91 kB / 361.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001604/0.1265, allocations: 72.81 kB / 361.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.1265, allocations: 4 kB / 361.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005586/0.1271, allocations: 0.6031 MB / 362.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.1271, allocations: 3.984 kB / 362.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.1283, allocations: 0.5349 MB / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.1284, allocations: 108.9 kB / 363.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.1285, allocations: 8 kB / 363.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.1287, allocations: 43.95 kB / 363.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.848e-05/0.1288, allocations: 36.02 kB / 363.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.1288, allocations: 12 kB / 363.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.1289, allocations: 139.2 kB / 363.4 MB, free: 15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.129, allocations: 0 / 363.4 MB, free: 15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003593/0.1293, allocations: 72 kB / 363.4 MB, free: 14.93 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 (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001918/0.1295, allocations: 123.2 kB / 363.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007913/0.1303, allocations: 339 kB / 363.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1303, allocations: 0 / 363.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.1307, allocations: 151.9 kB / 364 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.1311, allocations: 40.11 kB / 364.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.1326, allocations: 0.7919 MB / 364.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.1329, allocations: 0.7403 MB / 365.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.133, allocations: 25.94 kB / 365.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.001e-05/0.133, allocations: 27.42 kB / 365.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1331, allocations: 0 / 365.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of Templates: time 0.006917/0.14, allocations: 3.317 MB / 369 MB, free: 9.336 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches