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.001595/0.001595, allocations: 108.5 kB / 17.16 MB, free: 6.324 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.00169/0.001691, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.439/1.439, allocations: 222.9 MB / 241.8 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 51.86 kB / 300.6 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1053, allocations: 49.44 MB / 350.1 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003826/0.1092, allocations: 2.215 MB / 352.3 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.1106, allocations: 0.7013 MB / 353 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.1108, allocations: 4 kB / 353 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.111, allocations: 19.84 kB / 353 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.1113, allocations: 67.53 kB / 353.1 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.1116, allocations: 87.84 kB / 353.1 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003417/0.112, allocations: 259.5 kB / 353.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.1122, allocations: 52.28 kB / 353.4 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002246/0.1124, allocations: 111.5 kB / 353.6 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.1126, allocations: 119.5 kB / 353.7 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.514e-05/0.1127, allocations: 12 kB / 353.7 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.1128, allocations: 63.94 kB / 353.7 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.1129, allocations: 43.83 kB / 353.8 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.1131, allocations: 95.47 kB / 353.9 MB, free: 1 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.1133, allocations: 207.8 kB / 354.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1133, allocations: 0 / 354.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.1133, allocations: 4 kB / 354.1 MB, free: 0.793 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.1134, allocations: 3.938 kB / 354.1 MB, free: 0.7891 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.001044/0.1144, allocations: 0.5548 MB / 354.6 MB, free: 184 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1145, allocations: 8.031 kB / 354.7 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.98e-05/0.1145, allocations: 28.64 kB / 354.7 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.1148, allocations: 236 kB / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.1149, allocations: 16.38 kB / 354.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.109e-05/0.1149, allocations: 24.36 kB / 355 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005188/0.1155, allocations: 239.5 kB / 355.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.1155, allocations: 7.844 kB / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.1155, allocations: 8 kB / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.1155, allocations: 4 kB / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005004/0.116, allocations: 191.8 kB / 355.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.1171, allocations: 0.6642 MB / 356.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006025/0.1178, allocations: 206.3 kB / 356.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.118, allocations: 104.8 kB / 356.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.118, allocations: 0 / 356.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000463/0.1185, allocations: 164.8 kB / 356.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.784e-06/0.1185, allocations: 0 / 356.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002476/0.121, allocations: 1.147 MB / 357.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.1211, allocations: 59.41 kB / 357.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.1213, allocations: 187.9 kB / 357.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.1213, allocations: 33.7 kB / 357.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.781e-05/0.1214, allocations: 140.3 kB / 358.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.259e-05/0.1215, allocations: 86.75 kB / 358.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.1216, allocations: 61.69 kB / 358.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1218, allocations: 334.8 kB / 358.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.1221, allocations: 104.2 kB / 358.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/0.1224, allocations: 156.2 kB / 358.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004893/0.1229, allocations: 235.9 kB / 359 MB, free: 11.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1229, allocations: 7.938 kB / 359 MB, free: 11.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008337/0.1237, allocations: 396.8 kB / 359.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.1238, allocations: 37.69 kB / 359.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1238, allocations: 3.938 kB / 359.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002425/0.124, allocations: 72.75 kB / 359.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.1243, allocations: 47.97 kB / 359.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004974/0.1248, allocations: 0.6187 MB / 360.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.1251, allocations: 36 kB / 360.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.1251, allocations: 8 kB / 360.3 MB, free: 10.2 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 (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.0001611/0.1253, allocations: 145.8 kB / 360.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/0.1253, allocations: 19.81 kB / 360.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.032e-05/0.1254, allocations: 29.81 kB / 360.4 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1254, allocations: 4 kB / 360.4 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1254, allocations: 0 / 360.4 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1254, allocations: 3.984 kB / 360.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.1265, allocations: 0.6789 MB / 361.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1266, allocations: 0 / 361.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/0.1268, allocations: 47.91 kB / 361.2 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001774/0.127, allocations: 72.83 kB / 361.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.127, allocations: 4 kB / 361.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004472/0.1275, allocations: 0.6147 MB / 361.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1275, allocations: 0 / 361.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.1285, allocations: 0.5075 MB / 362.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.732e-05/0.1286, allocations: 112.9 kB / 362.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.329e-05/0.1286, allocations: 4 kB / 362.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.1289, allocations: 27.97 kB / 362.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.902e-05/0.129, allocations: 35.94 kB / 362.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.129, allocations: 8 kB / 362.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001178/0.1292, allocations: 143.4 kB / 362.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1292, allocations: 0 / 362.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003369/0.1295, allocations: 72 kB / 362.8 MB, free: 7.551 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 (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.0002057/0.1297, allocations: 127.2 kB / 362.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007521/0.1305, allocations: 323.1 kB / 363.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1305, allocations: 0 / 363.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003476/0.1308, allocations: 143.9 kB / 363.4 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.1313, allocations: 43.42 kB / 363.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.1327, allocations: 0.7626 MB / 364.2 MB, free: 6.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.133, allocations: 0.744 MB / 364.9 MB, free: 5.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.316e-05/0.1331, allocations: 19.38 kB / 364.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1331, allocations: 8 kB / 364.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of Templates: time 0.006784/0.1399, allocations: 3.786 MB / 368.7 MB, free: 1.543 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/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