Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001181/0.001186, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001122, allocations: 59.02 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09457, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003932/0.09855, allocations: 2.322 MB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.09982, allocations: 0.8606 MB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.09993, allocations: 7.938 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.1002, allocations: 51.52 kB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002657/0.1005, allocations: 107.3 kB / 362.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.1007, allocations: 71.84 kB / 362.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.101, allocations: 287.3 kB / 362.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.1012, allocations: 68.3 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002057/0.1014, allocations: 119.6 kB / 362.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002089/0.1017, allocations: 135.4 kB / 362.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.1017, allocations: 20 kB / 362.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.1019, allocations: 79.97 kB / 363 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.654e-05/0.102, allocations: 51.83 kB / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.1021, allocations: 111.5 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.1024, allocations: 315 kB / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1024, allocations: 0 / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1024, allocations: 0 / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1024, allocations: 0 / 363.5 MB, free: 8.734 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007365/0.1032, allocations: 0.538 MB / 364 MB, free: 8.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1032, allocations: 12.03 kB / 364 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.1034, allocations: 32.64 kB / 364.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003153/0.1037, allocations: 255.8 kB / 364.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.1037, allocations: 12.75 kB / 364.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.1038, allocations: 20.38 kB / 364.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003512/0.1041, allocations: 214.9 kB / 364.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1042, allocations: 4 kB / 364.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.1042, allocations: 8 kB / 364.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1042, allocations: 4 kB / 364.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003154/0.1045, allocations: 163 kB / 364.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.1056, allocations: 0.7701 MB / 365.5 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/0.106, allocations: 146.5 kB / 365.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.1061, allocations: 69.02 kB / 365.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.1061, allocations: 4 kB / 365.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.1062, allocations: 34.56 kB / 365.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.373e-06/0.1062, allocations: 0 / 365.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001778/0.1079, allocations: 0.9993 MB / 366.7 MB, free: 5.172 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.108, allocations: 55.41 kB / 366.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.1082, allocations: 222.7 kB / 367 MB, free: 4.879 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.1082, allocations: 33.7 kB / 367.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.805e-05/0.1083, allocations: 140.2 kB / 367.2 MB, free: 4.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.677e-05/0.1084, allocations: 74.98 kB / 367.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.771e-05/0.1085, allocations: 53.61 kB / 367.3 MB, free: 4.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1086, allocations: 326.8 kB / 367.6 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.1087, allocations: 67.97 kB / 367.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.1089, allocations: 119.4 kB / 367.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/0.1092, allocations: 157 kB / 368 MB, free: 3.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1092, allocations: 7.938 kB / 368 MB, free: 3.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004584/0.1097, allocations: 266.1 kB / 368.2 MB, free: 3.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1097, allocations: 8 kB / 368.2 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.1097, allocations: 0 / 368.2 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.1099, allocations: 56.83 kB / 368.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.1101, allocations: 39.92 kB / 368.3 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.1117, allocations: 1.818 MB / 370.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.1119, allocations: 23.98 kB / 370.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.1119, allocations: 8 kB / 370.2 MB, free: 1.504 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 (25): * Single equations (assignments): 24 * 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.0001173/0.1121, allocations: 141.7 kB / 370.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.288e-05/0.1121, allocations: 27.66 kB / 370.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.826e-05/0.1122, allocations: 25.88 kB / 370.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1122, allocations: 0 / 370.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.1122, allocations: 4 kB / 370.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.1122, allocations: 7.984 kB / 370.4 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007979/0.113, allocations: 0.6026 MB / 371 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.113, allocations: 0 / 371 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.1132, allocations: 27.98 kB / 371 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001405/0.1133, allocations: 60.89 kB / 371.1 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.1134, allocations: 8.047 kB / 371.1 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1497/0.2631, allocations: 1.659 MB / 372.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2631, allocations: 1.922 kB / 372.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006793/0.2638, allocations: 427.7 kB / 373.2 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.641e-05/0.2639, allocations: 113.9 kB / 373.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.2639, allocations: 9.938 kB / 373.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.2641, allocations: 20.89 kB / 373.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.2643, allocations: 64.61 kB / 373.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.2643, allocations: 10.7 kB / 373.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001425/0.2644, allocations: 154.8 kB / 373.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2644, allocations: 2.469 kB / 373.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004053/0.2648, allocations: 69.73 kB / 373.6 MB, free: 18.43 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 (15): * Single equations (assignments): 14 * 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.0007546/0.2656, allocations: 364.3 kB / 374 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005737/0.2662, allocations: 312.5 kB / 374.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2662, allocations: 0 / 374.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.2665, allocations: 226.9 kB / 374.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.2669, allocations: 50.66 kB / 374.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.2683, allocations: 0.6942 MB / 375.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.2685, allocations: 0.7468 MB / 376 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.2686, allocations: 19.62 kB / 376 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.96e-05/0.2687, allocations: 24 kB / 376 MB, free: 17.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2687, allocations: 4 kB / 376 MB, free: 17.01 MB / 302.1 MB Notification: Performance of Templates: time 0.008215/0.2769, allocations: 3.914 MB / 379.9 MB, free: 16.74 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches