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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001582/0.001582, allocations: 163.4 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9786/0.9786, allocations: 177 MB / 205.2 MB, free: 5.062 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2711/0.2711, allocations: 34.86 MB / 296.6 MB, free: 476 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,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=5020,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 325.9 MB, free: 7.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.035e-05/2.176e-05, allocations: 5.406 kB / 325.9 MB, free: 7.156 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004357/0.004378, allocations: 4.05 MB / 330 MB, free: 3.078 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.006565, allocations: 1.518 MB / 331.5 MB, free: 1.559 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002211/0.006786, allocations: 15.88 kB / 331.5 MB, free: 1.543 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003319/0.007118, allocations: 130.8 kB / 331.6 MB, free: 1.414 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004587/0.007576, allocations: 301.7 kB / 331.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005241/0.0081, allocations: 367.3 kB / 332.3 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000789/0.008889, allocations: 1.12 MB / 333.4 MB, free: 15.63 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.009088, allocations: 143.6 kB / 333.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000678/0.009766, allocations: 0.655 MB / 334.2 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004717/0.01024, allocations: 427 kB / 334.6 MB, free: 14.4 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.01034, allocations: 80 kB / 334.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002492/0.01059, allocations: 143.9 kB / 334.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.01078, allocations: 239.2 kB / 335.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002216/0.011, allocations: 307.2 kB / 335.4 MB, free: 13.65 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006971/0.0117, allocations: 0.7863 MB / 336.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.0117, allocations: 0 / 336.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.0117, allocations: 4 kB / 336.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.01171, allocations: 0 / 336.2 MB, free: 12.86 MB / 314.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.001276/0.01299, allocations: 1.03 MB / 337.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.01303, allocations: 8.031 kB / 337.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002657/0.01329, allocations: 136.8 kB / 337.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004174/0.01371, allocations: 364.1 kB / 337.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.265e-05/0.01375, allocations: 49.69 kB / 337.7 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.741e-05/0.01383, allocations: 68.31 kB / 337.8 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006081/0.01444, allocations: 0.6155 MB / 338.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.01446, allocations: 11.94 kB / 338.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.941e-05/0.0145, allocations: 28 kB / 338.5 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.01451, allocations: 12 kB / 338.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004401/0.01495, allocations: 306.4 kB / 338.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.01682, allocations: 1.808 MB / 340.6 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005515/0.01738, allocations: 402 kB / 341 MB, free: 7.844 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.01757, allocations: 171.3 kB / 341.1 MB, free: 7.664 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.954e-05/0.01762, allocations: 16.33 kB / 341.2 MB, free: 7.648 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.01765, allocations: 38.94 kB / 341.2 MB, free: 7.602 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 1.914e-06/0.01765, allocations: 4 kB / 341.2 MB, free: 7.598 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.002848/0.0205, allocations: 1.768 MB / 343 MB, free: 5.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.02056, allocations: 144.5 kB / 343.1 MB, free: 5.559 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.02083, allocations: 420.8 kB / 343.5 MB, free: 5.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.02088, allocations: 53.7 kB / 343.6 MB, free: 5.074 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.02098, allocations: 246.1 kB / 343.8 MB, free: 4.828 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.02113, allocations: 301.5 kB / 344.1 MB, free: 4.531 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.02131, allocations: 178.5 kB / 344.3 MB, free: 4.352 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.02142, allocations: 378.6 kB / 344.7 MB, free: 3.973 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002067/0.02163, allocations: 137.9 kB / 344.8 MB, free: 3.836 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.02188, allocations: 298.2 kB / 345.1 MB, free: 3.488 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004037/0.02228, allocations: 452 kB / 345.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.02228, allocations: 0 / 345.5 MB, free: 2.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.0007985/0.02308, allocations: 0.6396 MB / 346.2 MB, free: 2.332 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.0231, allocations: 4 kB / 346.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.02311, allocations: 4 kB / 346.2 MB, free: 2.324 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005654/0.02368, allocations: 435.8 kB / 346.6 MB, free: 1.887 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.02396, allocations: 147.7 kB / 346.7 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.02574, allocations: 3.209 MB / 349.9 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003561/0.0261, allocations: 115.8 kB / 350.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.02614, allocations: 24.05 kB / 350.1 MB, free: 14.23 MB / 330.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.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,bearingFriction.free) * 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 (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.02634, allocations: 183 kB / 350.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.02646, allocations: 71.88 kB / 350.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.81e-05/0.02654, allocations: 96.86 kB / 350.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.02654, allocations: 12 kB / 350.4 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.02655, allocations: 0 / 350.4 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.02655, allocations: 7.984 kB / 350.4 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.02801, allocations: 1.207 MB / 351.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.02801, allocations: 4 kB / 351.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.02828, allocations: 115.9 kB / 351.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004869/0.02877, allocations: 411 kB / 352.2 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.399e-05/0.02881, allocations: 27.95 kB / 352.2 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001528/0.03034, allocations: 3.086 MB / 355.3 MB, free: 8.805 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.03034, allocations: 0 / 355.3 MB, free: 8.805 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.03137, allocations: 1.047 MB / 356.3 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001797/0.03155, allocations: 99.45 kB / 356.4 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.883e-05/0.03163, allocations: 28 kB / 356.5 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003187/0.03195, allocations: 91.83 kB / 356.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.03221, allocations: 195.6 kB / 356.7 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.03225, allocations: 23.97 kB / 356.8 MB, free: 7.293 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001396/0.03239, allocations: 180.4 kB / 356.9 MB, free: 7.117 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03239, allocations: 0 / 356.9 MB, free: 7.117 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005857/0.03297, allocations: 212 kB / 357.1 MB, free: 6.91 MB / 330.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 (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009659/0.03394, allocations: 481 kB / 357.6 MB, free: 6.648 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008251/0.03477, allocations: 0.6343 MB / 358.3 MB, free: 6 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/0.03477, allocations: 4 kB / 358.3 MB, free: 5.996 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004379/0.03521, allocations: 445.2 kB / 358.7 MB, free: 5.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.0358, allocations: 208.2 kB / 358.9 MB, free: 5.348 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.03799, allocations: 1.516 MB / 360.4 MB, free: 3.781 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.03811, allocations: 167.2 kB / 360.6 MB, free: 3.598 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.03831, allocations: 77.03 kB / 360.6 MB, free: 3.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002692/0.03858, allocations: 173.2 kB / 360.8 MB, free: 3.352 MB / 330.7 MB Notification: Performance of SimCode: time 1.402e-06/0.03858, allocations: 4 kB / 360.8 MB, free: 3.348 MB / 330.7 MB Notification: Performance of Templates: time 0.01964/0.05823, allocations: 15.31 MB / 376.1 MB, free: 4.203 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4140615821816027]