Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.001579/0.001579, allocations: 84.25 kB / 22.21 MB, free: 2.285 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.001917/0.001917, allocations: 161.9 kB / 25.61 MB, free: 8.586 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 1.024/1.024, allocations: 177 MB / 205.9 MB, free: 4.449 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.1767/0.1767, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.581e-05/2.724e-05, allocations: 7.094 kB / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003027/0.003055, allocations: 2.367 MB / 382.4 MB, free: 20.38 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.004518, allocations: 0.8764 MB / 383.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.00466, allocations: 7.938 kB / 383.2 MB, free: 19.49 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002478/0.004907, allocations: 55.44 kB / 383.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.005114, allocations: 79.34 kB / 383.4 MB, free: 19.36 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.005556, allocations: 143.6 kB / 383.5 MB, free: 19.21 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.005943, allocations: 363.1 kB / 383.9 MB, free: 18.86 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.006081, allocations: 76.98 kB / 383.9 MB, free: 18.78 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003658/0.006447, allocations: 211.6 kB / 384.2 MB, free: 18.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.00669, allocations: 135.6 kB / 384.3 MB, free: 18.44 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.849e-05/0.006738, allocations: 24 kB / 384.3 MB, free: 18.42 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001985/0.006937, allocations: 87.91 kB / 384.4 MB, free: 18.33 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.773e-05/0.007035, allocations: 67.81 kB / 384.5 MB, free: 18.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.007136, allocations: 103.7 kB / 384.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004225/0.007559, allocations: 295 kB / 384.9 MB, free: 17.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.007562, allocations: 4 kB / 384.9 MB, free: 17.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.007563, allocations: 0 / 384.9 MB, free: 17.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.007571, allocations: 4 kB / 384.9 MB, free: 17.87 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007219/0.008292, allocations: 0.5972 MB / 385.5 MB, free: 17.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.008333, allocations: 8.031 kB / 385.5 MB, free: 17.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002228/0.008556, allocations: 60.73 kB / 385.5 MB, free: 17.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.008823, allocations: 198.3 kB / 385.7 MB, free: 16.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.008853, allocations: 20.88 kB / 385.7 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.776e-05/0.008901, allocations: 32.3 kB / 385.8 MB, free: 16.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.009259, allocations: 201.2 kB / 386 MB, free: 16.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.009279, allocations: 12.11 kB / 386 MB, free: 16.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/0.009308, allocations: 12.38 kB / 386 MB, free: 16.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.009319, allocations: 7.938 kB / 386 MB, free: 16.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002113/0.009531, allocations: 121.4 kB / 386.1 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009921/0.01052, allocations: 0.5839 MB / 386.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.01087, allocations: 165.9 kB / 386.9 MB, free: 15.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.01097, allocations: 76.36 kB / 386.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.01099, allocations: 4 kB / 386.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.01101, allocations: 41.33 kB / 387 MB, free: 15.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.853e-06/0.01101, allocations: 0 / 387 MB, free: 15.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001851/0.01286, allocations: 0.8919 MB / 387.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.01289, allocations: 55.41 kB / 387.9 MB, free: 14.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.01303, allocations: 231.1 kB / 388.2 MB, free: 14.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.01305, allocations: 33.7 kB / 388.2 MB, free: 14.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.543e-05/0.01312, allocations: 195.4 kB / 388.4 MB, free: 14.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.137e-05/0.01319, allocations: 123 kB / 388.5 MB, free: 14.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.01329, allocations: 67.33 kB / 388.6 MB, free: 13.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.708e-05/0.01336, allocations: 0.5118 MB / 389.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.01348, allocations: 55.95 kB / 389.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.01361, allocations: 111.7 kB / 389.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002007/0.01381, allocations: 159.8 kB / 389.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01381, allocations: 0 / 389.4 MB, free: 13.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004849/0.01429, allocations: 296.8 kB / 389.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.01431, allocations: 11.98 kB / 389.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.01432, allocations: 0 / 389.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003071/0.01463, allocations: 151.5 kB / 389.8 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.01475, allocations: 55.91 kB / 389.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003272/0.01508, allocations: 0.8953 MB / 390.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.776e-05/0.01517, allocations: 32.06 kB / 390.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.01519, allocations: 8 kB / 390.8 MB, free: 11.58 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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,13)} Notification: Performance of prepare postOptimizeDAE: time 7.655e-05/0.01527, allocations: 168.8 kB / 391 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.442e-05/0.01531, allocations: 39.8 kB / 391 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.01535, allocations: 42.58 kB / 391.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.01536, allocations: 0 / 391.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.01536, allocations: 4 kB / 391.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.01536, allocations: 0 / 391.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007328/0.0161, allocations: 0.723 MB / 391.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.0161, allocations: 3.938 kB / 391.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.01623, allocations: 47.97 kB / 391.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002201/0.01645, allocations: 143.5 kB / 392 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.01648, allocations: 11.98 kB / 392 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003558/0.01684, allocations: 0.8741 MB / 392.9 MB, free: 9.434 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.01684, allocations: 0 / 392.9 MB, free: 9.434 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004381/0.01728, allocations: 481.1 kB / 393.3 MB, free: 8.938 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.196e-05/0.01736, allocations: 59.86 kB / 393.4 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/0.01739, allocations: 8 kB / 393.4 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.0175, allocations: 31.91 kB / 393.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.532e-05/0.01758, allocations: 51.83 kB / 393.5 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.0176, allocations: 11.98 kB / 393.5 MB, free: 8.777 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.593e-05/0.01766, allocations: 163.4 kB / 393.7 MB, free: 8.617 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01766, allocations: 0 / 393.7 MB, free: 8.617 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002308/0.01789, allocations: 68 kB / 393.7 MB, free: 8.551 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008234/0.01871, allocations: 347.1 kB / 394.1 MB, free: 8.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003531/0.01906, allocations: 208 kB / 394.3 MB, free: 8.133 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.01907, allocations: 0 / 394.3 MB, free: 8.133 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.01922, allocations: 120.2 kB / 394.4 MB, free: 8.012 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.01952, allocations: 58.53 kB / 394.5 MB, free: 7.957 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.02062, allocations: 0.6459 MB / 395.1 MB, free: 7.277 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.299e-05/0.02066, allocations: 89.05 kB / 395.2 MB, free: 7.172 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.328e-05/0.02072, allocations: 26.42 kB / 395.2 MB, free: 7.145 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.438e-05/0.02082, allocations: 106.2 kB / 395.3 MB, free: 7.039 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.02082, allocations: 0 / 395.3 MB, free: 7.039 MB / 314.7 MB Notification: Performance of Templates: time 0.006506/0.02732, allocations: 4.86 MB / 400.2 MB, free: 2.203 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.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.4581673042848706]