Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(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_3.2.3_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_3.2.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 95.89 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 176.9 kB / 16.56 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 205.4 MB / 222.7 MB, free: 5.91 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4167/0.4167, allocations: 43.55 MB / 314.5 MB, free: 8.672 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000534/0.0005341, allocations: 16 kB / 383.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1397, allocations: 58.86 MB / 442.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004059/0.1438, allocations: 3.155 MB / 445.9 MB, free: 9.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00263/0.1465, allocations: 1.287 MB / 447.2 MB, free: 8.656 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005783/0.1471, allocations: 8 kB / 447.2 MB, free: 8.648 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.1474, allocations: 75.39 kB / 447.3 MB, free: 8.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008355/0.1483, allocations: 247.3 kB / 447.5 MB, free: 8.332 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00087/0.1492, allocations: 263.5 kB / 447.8 MB, free: 8.074 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001176/0.1504, allocations: 0.634 MB / 448.4 MB, free: 7.438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003265/0.1507, allocations: 140.9 kB / 448.5 MB, free: 7.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000692/0.1514, allocations: 386.7 kB / 448.9 MB, free: 6.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006726/0.1521, allocations: 430.4 kB / 449.3 MB, free: 6.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.1523, allocations: 40 kB / 449.4 MB, free: 6.453 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003564/0.1526, allocations: 79.91 kB / 449.5 MB, free: 6.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.1528, allocations: 159.4 kB / 449.6 MB, free: 6.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002166/0.1531, allocations: 149.3 kB / 449.8 MB, free: 6.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006693/0.1537, allocations: 0.6431 MB / 450.4 MB, free: 5.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1538, allocations: 0 / 450.4 MB, free: 5.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1538, allocations: 3.938 kB / 450.4 MB, free: 5.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.1538, allocations: 0 / 450.4 MB, free: 5.418 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001958/0.1557, allocations: 1.001 MB / 451.4 MB, free: 4.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1558, allocations: 8.031 kB / 451.4 MB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.156, allocations: 79.06 kB / 451.5 MB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005616/0.1565, allocations: 412.7 kB / 451.9 MB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.714e-05/0.1566, allocations: 53.31 kB / 451.9 MB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.1567, allocations: 63.91 kB / 452 MB, free: 3.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.1582, allocations: 0.8255 MB / 452.8 MB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/0.1582, allocations: 15.89 kB / 452.8 MB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.51e-05/0.1583, allocations: 24 kB / 452.9 MB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.1583, allocations: 19.95 kB / 452.9 MB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.1599, allocations: 0.7932 MB / 453.7 MB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2176/0.3775, allocations: 2.62 MB / 456.3 MB, free: 45.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.3787, allocations: 0.65 MB / 457 MB, free: 45.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.577e-05/0.3788, allocations: 10.45 kB / 457 MB, free: 45.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.3788, allocations: 44.03 kB / 457 MB, free: 45.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.966e-06/0.3788, allocations: 0 / 457 MB, free: 45.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.006485/0.3853, allocations: 3.724 MB / 460.7 MB, free: 43.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.3854, allocations: 149.3 kB / 460.9 MB, free: 43.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00036/0.3857, allocations: 425.6 kB / 461.3 MB, free: 43.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.485e-05/0.3858, allocations: 48.61 kB / 461.3 MB, free: 43.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.3859, allocations: 282.1 kB / 461.6 MB, free: 43.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.3861, allocations: 266.8 kB / 461.9 MB, free: 43.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.3862, allocations: 19.84 kB / 461.9 MB, free: 43.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.866e-05/0.3862, allocations: 372.1 kB / 462.3 MB, free: 42.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006317/0.3869, allocations: 405.5 kB / 462.7 MB, free: 42.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006852/0.3876, allocations: 0.5537 MB / 463.2 MB, free: 42.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005776/0.3882, allocations: 343.5 kB / 463.5 MB, free: 42.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3882, allocations: 3.094 kB / 463.5 MB, free: 42.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002218/0.3904, allocations: 1.279 MB / 464.8 MB, free: 42.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3904, allocations: 5.562 kB / 464.8 MB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.3905, allocations: 3.031 kB / 464.8 MB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.3917, allocations: 0.7623 MB / 465.6 MB, free: 42.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/0.3922, allocations: 161.5 kB / 465.8 MB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/0.394, allocations: 2.688 MB / 468.4 MB, free: 40.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008713/0.3948, allocations: 195.7 kB / 468.6 MB, free: 40.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-05/0.3949, allocations: 39.91 kB / 468.7 MB, free: 40.2 MB / 382.1 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 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,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 (91): * Single equations (assignments): 87 * 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 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003107/0.3952, allocations: 212.8 kB / 468.9 MB, free: 40.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.3954, allocations: 67.55 kB / 468.9 MB, free: 40.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/0.3956, allocations: 84.81 kB / 469 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.3956, allocations: 9.062 kB / 469 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.629e-05/0.3956, allocations: 0.5 kB / 469 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.3956, allocations: 6.359 kB / 469 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003449/0.3991, allocations: 2.196 MB / 471.2 MB, free: 39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.3991, allocations: 6.906 kB / 471.2 MB, free: 39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004988/0.3996, allocations: 123 kB / 471.4 MB, free: 38.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009791/0.4006, allocations: 0.7234 MB / 472.1 MB, free: 38.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.4007, allocations: 28.39 kB / 472.1 MB, free: 38.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001521/0.4022, allocations: 2.642 MB / 474.8 MB, free: 36.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.4022, allocations: 4.75 kB / 474.8 MB, free: 36.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00263/0.4048, allocations: 1.845 MB / 476.6 MB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000302/0.4052, allocations: 211.6 kB / 476.8 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.4053, allocations: 29.2 kB / 476.8 MB, free: 35.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008535/0.4062, allocations: 173.1 kB / 477 MB, free: 35.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002911/0.4065, allocations: 177.9 kB / 477.2 MB, free: 35.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.854e-05/0.4065, allocations: 33.3 kB / 477.2 MB, free: 35.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002645/0.4068, allocations: 284.8 kB / 477.5 MB, free: 35.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4068, allocations: 0 / 477.5 MB, free: 35.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008397/0.4077, allocations: 204 kB / 477.7 MB, free: 35.15 MB / 382.1 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 (53): * Single equations (assignments): 49 * 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 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002506/0.4079, allocations: 164.3 kB / 477.9 MB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001895/0.4098, allocations: 0.9724 MB / 478.8 MB, free: 34.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4098, allocations: 4.062 kB / 478.8 MB, free: 34.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.411, allocations: 0.5125 MB / 479.3 MB, free: 34.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007505/0.4118, allocations: 85.88 kB / 479.4 MB, free: 34.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004529/0.4163, allocations: 2.573 MB / 482 MB, free: 33.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.4167, allocations: 0.9207 MB / 482.9 MB, free: 32.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002741/0.417, allocations: 66.33 kB / 483 MB, free: 32.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.4171, allocations: 40.8 kB / 483 MB, free: 32.33 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4171, allocations: 0 / 483 MB, free: 32.33 MB / 382.1 MB Notification: Performance of Templates: time 0.02466/0.4417, allocations: 14.04 MB / 497.1 MB, free: 30.22 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches