Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002071/0.00207, allocations: 200.5 kB / 18.11 MB, free: 3.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007869/0.0007868, allocations: 96.53 kB / 297.5 MB, free: 6.863 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4291/0.4291, allocations: 44.82 MB / 394.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002713, allocations: 8 kB / 467.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3629, allocations: 62.96 MB / 0.5184 GB, free: 37.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1213/0.4843, allocations: 95.36 MB / 0.6115 GB, free: 9.891 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/0.4845, allocations: 75.95 kB / 0.6116 GB, free: 9.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04441/0.5289, allocations: 16.26 MB / 0.6275 GB, free: 9.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.529, allocations: 0 / 0.6275 GB, free: 9.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.097e-05/0.529, allocations: 16 kB / 0.6275 GB, free: 9.504 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002/0.531, allocations: 1.048 MB / 0.6285 GB, free: 8.406 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.5311, allocations: 8.031 kB / 0.6285 GB, free: 8.398 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004834/0.5316, allocations: 139.9 kB / 0.6287 GB, free: 8.262 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006218/0.5322, allocations: 445.6 kB / 0.6291 GB, free: 7.789 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.375e-05/0.5323, allocations: 49.69 kB / 0.6291 GB, free: 7.738 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.5324, allocations: 72.27 kB / 0.6292 GB, free: 7.668 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.5339, allocations: 0.8112 MB / 0.63 GB, free: 6.824 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/0.5339, allocations: 15.78 kB / 0.63 GB, free: 6.809 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.108e-05/0.534, allocations: 24 kB / 0.63 GB, free: 6.785 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.534, allocations: 16 kB / 0.6301 GB, free: 6.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.5357, allocations: 0.7479 MB / 0.6308 GB, free: 6.023 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004192/0.5399, allocations: 2.634 MB / 0.6334 GB, free: 3.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.5413, allocations: 0.6764 MB / 0.634 GB, free: 2.559 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007395/0.5421, allocations: 381.5 kB / 0.6344 GB, free: 2.176 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.527e-05/0.5421, allocations: 20.36 kB / 0.6344 GB, free: 2.156 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.127e-05/0.5422, allocations: 38.56 kB / 0.6344 GB, free: 2.109 MB / 442.7 MB Notification: Performance of pre-optimization done (n=79): time 3.316e-06/0.5422, allocations: 0 / 0.6344 GB, free: 2.109 MB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.008226/0.5504, allocations: 3.686 MB / 0.638 GB, free: 14.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.561e-05/0.5506, allocations: 140.5 kB / 0.6382 GB, free: 13.99 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006908/0.5513, allocations: 461.7 kB / 0.6386 GB, free: 13.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.5514, allocations: 61.62 kB / 0.6387 GB, free: 13.47 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000265/0.5517, allocations: 272.6 kB / 0.6389 GB, free: 13.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.5519, allocations: 288.1 kB / 0.6392 GB, free: 12.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.172e-05/0.552, allocations: 20 kB / 0.6392 GB, free: 12.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.5522, allocations: 370.8 kB / 0.6396 GB, free: 12.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00077/0.553, allocations: 365.8 kB / 0.6399 GB, free: 12.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000872/0.5539, allocations: 0.5215 MB / 0.6404 GB, free: 11.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.5552, allocations: 0.7142 MB / 0.6411 GB, free: 10.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.5552, allocations: 0 / 0.6411 GB, free: 10.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002687/0.5579, allocations: 1.217 MB / 0.6423 GB, free: 9.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.5579, allocations: 8 kB / 0.6423 GB, free: 9.562 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.558, allocations: 4 kB / 0.6423 GB, free: 9.559 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.5591, allocations: 0.5109 MB / 0.6428 GB, free: 9.035 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005497/0.5597, allocations: 147.8 kB / 0.643 GB, free: 8.891 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00372/0.5634, allocations: 3.661 MB / 0.6465 GB, free: 5.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.5645, allocations: 199.8 kB / 0.6467 GB, free: 4.824 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.091e-05/0.5646, allocations: 35.98 kB / 0.6468 GB, free: 4.789 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 8,1 10,1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004182/0.565, allocations: 220.2 kB / 0.647 GB, free: 4.562 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/0.5652, allocations: 71.16 kB / 0.6471 GB, free: 4.492 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001757/0.5654, allocations: 88.77 kB / 0.6471 GB, free: 4.406 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.5654, allocations: 15.94 kB / 0.6472 GB, free: 4.391 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.5654, allocations: 0 / 0.6472 GB, free: 4.391 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.5654, allocations: 8.031 kB / 0.6472 GB, free: 4.383 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003846/0.5693, allocations: 2.157 MB / 0.6493 GB, free: 2.156 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.5693, allocations: 0 / 0.6493 GB, free: 2.156 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005846/0.5699, allocations: 127.8 kB / 0.6494 GB, free: 2.031 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/0.5709, allocations: 487 kB / 0.6499 GB, free: 1.543 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.611e-05/0.571, allocations: 31.91 kB / 0.6499 GB, free: 1.512 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003423/0.5745, allocations: 3.525 MB / 0.6533 GB, free: 13.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.5745, allocations: 3.938 kB / 0.6533 GB, free: 13.77 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003147/0.5776, allocations: 1.73 MB / 0.655 GB, free: 12.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003907/0.578, allocations: 236 kB / 0.6552 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.5782, allocations: 39.94 kB / 0.6553 GB, free: 11.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000838/0.579, allocations: 167.8 kB / 0.6554 GB, free: 11.56 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004366/0.5795, allocations: 211.5 kB / 0.6556 GB, free: 11.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.854e-05/0.5795, allocations: 35.97 kB / 0.6557 GB, free: 11.32 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003832/0.5799, allocations: 310.9 kB / 0.656 GB, free: 11.02 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5799, allocations: 0 / 0.656 GB, free: 11.02 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008756/0.5808, allocations: 216 kB / 0.6562 GB, free: 10.81 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 10,1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008889/0.5817, allocations: 418 kB / 0.6566 GB, free: 10.51 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.5839, allocations: 1.041 MB / 0.6576 GB, free: 9.457 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.5839, allocations: 0 / 0.6576 GB, free: 9.457 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.5851, allocations: 0.6323 MB / 0.6582 GB, free: 8.812 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.5861, allocations: 132.5 kB / 0.6583 GB, free: 8.688 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005009/0.5911, allocations: 2.636 MB / 0.6609 GB, free: 6.008 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005441/0.5917, allocations: 0.9263 MB / 0.6618 GB, free: 5.047 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0003841/0.5921, allocations: 84.97 kB / 0.6619 GB, free: 4.961 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.5923, allocations: 55.39 kB / 0.662 GB, free: 4.906 MB / 474.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5923, allocations: 0 / 0.662 GB, free: 4.906 MB / 474.7 MB Notification: Performance of Templates: time 0.02283/0.6151, allocations: 14.08 MB / 0.6757 GB, free: 6.887 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches