Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.OneWayClutchDisengaged,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.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_4.0.0_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.001096/0.001096, allocations: 111.1 kB / 17.68 MB, free: 5.355 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.00113/0.00113, allocations: 192 kB / 18.62 MB, free: 4.434 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.343/1.343, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009528/0.0009529, allocations: 45.33 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1047, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003408/0.1082, allocations: 2.206 MB / 353.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1094, allocations: 0.6816 MB / 354.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.1095, allocations: 4 kB / 354.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.1097, allocations: 35.64 kB / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.1099, allocations: 63.48 kB / 354.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003173/0.1103, allocations: 103.7 kB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002814/0.1106, allocations: 263.4 kB / 354.8 MB, free: 332 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1107, allocations: 64.36 kB / 354.9 MB, free: 260 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1109, allocations: 107.6 kB / 355 MB, free: 152 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.1111, allocations: 123.5 kB / 355.1 MB, free: 28 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.1111, allocations: 20 kB / 355.2 MB, free: 8 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.1113, allocations: 64.03 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.122e-05/0.1114, allocations: 51.83 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.1115, allocations: 111.4 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.1118, allocations: 283 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1118, allocations: 0 / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1118, allocations: 4 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1118, allocations: 0 / 355.7 MB, free: 15.5 MB / 302.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.0008766/0.1127, allocations: 0.5223 MB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1128, allocations: 8.031 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.415e-05/0.1128, allocations: 20.75 kB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003842/0.1132, allocations: 235.9 kB / 356.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.1133, allocations: 16.81 kB / 356.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.109e-05/0.1133, allocations: 20.38 kB / 356.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00042/0.1137, allocations: 222 kB / 356.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.1138, allocations: 3.938 kB / 356.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.1138, allocations: 8 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1138, allocations: 8 kB / 356.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.1142, allocations: 161 kB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.1154, allocations: 0.7797 MB / 357.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.1157, allocations: 126.5 kB / 357.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.1159, allocations: 65.14 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.1159, allocations: 7.906 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.116, allocations: 42.5 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.116, allocations: 0 / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.001913/0.1179, allocations: 0.9928 MB / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.1179, allocations: 55.39 kB / 358.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.1181, allocations: 203.2 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.1182, allocations: 33.69 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.887e-05/0.1183, allocations: 140.1 kB / 359.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.1183, allocations: 71 kB / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.459e-05/0.1184, allocations: 53.7 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1186, allocations: 334.8 kB / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.1187, allocations: 75.97 kB / 359.8 MB, free: 11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.1189, allocations: 120.1 kB / 359.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/0.1192, allocations: 166.6 kB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1192, allocations: 3.938 kB / 360.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004914/0.1197, allocations: 288.5 kB / 360.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.1197, allocations: 10.66 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.1197, allocations: 3.984 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/0.12, allocations: 76.88 kB / 360.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.1202, allocations: 39.91 kB / 360.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004841/0.1206, allocations: 0.6186 MB / 361.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.1208, allocations: 27.97 kB / 361.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.1209, allocations: 12 kB / 361.2 MB, free: 9.586 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: 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.0001279/0.121, allocations: 133.8 kB / 361.3 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.5e-05/0.1211, allocations: 19.81 kB / 361.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.24e-05/0.1211, allocations: 29.86 kB / 361.3 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1211, allocations: 3.938 kB / 361.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1211, allocations: 0 / 361.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1211, allocations: 0 / 361.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009148/0.1221, allocations: 0.5982 MB / 362 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1221, allocations: 0 / 362 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.1222, allocations: 31.98 kB / 362 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001656/0.1224, allocations: 68.81 kB / 362 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.1225, allocations: 4.031 kB / 362.1 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004762/0.1229, allocations: 0.6265 MB / 362.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1229, allocations: 3.984 kB / 362.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006276/0.1236, allocations: 420.7 kB / 363.1 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.911e-05/0.1237, allocations: 108.9 kB / 363.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.1237, allocations: 11.98 kB / 363.2 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.1239, allocations: 15.98 kB / 363.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.441e-05/0.124, allocations: 23.97 kB / 363.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.124, allocations: 7.984 kB / 363.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000125/0.1241, allocations: 152.2 kB / 363.4 MB, free: 7.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1241, allocations: 4 kB / 363.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.1245, allocations: 71.94 kB / 363.5 MB, free: 7.129 MB / 302.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.0001892/0.1247, allocations: 122.2 kB / 363.6 MB, free: 7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004785/0.1251, allocations: 199.8 kB / 363.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1252, allocations: 0 / 363.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.1254, allocations: 108.1 kB / 363.9 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003857/0.1258, allocations: 34.89 kB / 363.9 MB, free: 6.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.1271, allocations: 0.6685 MB / 364.6 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.1275, allocations: 0.7363 MB / 365.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.116e-05/0.1276, allocations: 17.95 kB / 365.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.571e-05/0.1276, allocations: 19.42 kB / 365.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1276, allocations: 0 / 365.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of Templates: time 0.006876/0.1345, allocations: 3.204 MB / 368.6 MB, free: 1.984 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches