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.001447/0.001447, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001406/0.001406, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9817/0.9817, allocations: 177 MB / 204.8 MB, free: 5.594 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.2567/0.2567, allocations: 34.88 MB / 296.3 MB, free: 0.5312 MB / 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.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 2.094e-06/2.094e-06, allocations: 0 / 378.7 MB, free: 2.113 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.987e-05/3.196e-05, allocations: 8.422 kB / 378.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004249/0.004281, allocations: 2.385 MB / 381.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.005962, allocations: 0.8956 MB / 382 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.006122, allocations: 7.938 kB / 382 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003191/0.006441, allocations: 51.52 kB / 382.1 MB, free: 14.74 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.006676, allocations: 87.33 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.007149, allocations: 147.5 kB / 382.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.007587, allocations: 359.1 kB / 382.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.007778, allocations: 57.14 kB / 382.7 MB, free: 14.1 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004209/0.008199, allocations: 215.5 kB / 382.9 MB, free: 13.89 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.008466, allocations: 135.7 kB / 383.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.488e-05/0.00852, allocations: 35.94 kB / 383.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.008711, allocations: 83.91 kB / 383.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.00884, allocations: 67.8 kB / 383.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.00896, allocations: 99.75 kB / 383.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004836/0.009444, allocations: 303 kB / 383.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.009449, allocations: 0 / 383.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.009451, allocations: 0 / 383.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.009458, allocations: 0 / 383.7 MB, free: 13.18 MB / 362.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.0009205/0.01038, allocations: 0.5973 MB / 384.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.01042, allocations: 8.031 kB / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.01065, allocations: 52.75 kB / 384.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003533/0.011, allocations: 212.8 kB / 384.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.01104, allocations: 16.88 kB / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.066e-05/0.0111, allocations: 24.38 kB / 384.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004861/0.01158, allocations: 229.2 kB / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.0116, allocations: 8.172 kB / 384.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.01163, allocations: 12.38 kB / 384.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.01165, allocations: 7.938 kB / 384.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003541/0.012, allocations: 146.8 kB / 385 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.01323, allocations: 0.6146 MB / 385.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004486/0.01368, allocations: 187 kB / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.01386, allocations: 83.64 kB / 385.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.01389, allocations: 4 kB / 385.8 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.01392, allocations: 41.39 kB / 385.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.334e-06/0.01392, allocations: 0 / 385.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.00239/0.01631, allocations: 0.984 MB / 386.9 MB, free: 9.773 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.01635, allocations: 55.41 kB / 386.9 MB, free: 9.707 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.01655, allocations: 238 kB / 387.1 MB, free: 9.457 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.01659, allocations: 33.7 kB / 387.2 MB, free: 9.418 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.01669, allocations: 191.5 kB / 387.4 MB, free: 9.227 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.542e-05/0.01679, allocations: 123 kB / 387.5 MB, free: 9.105 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.01691, allocations: 71.34 kB / 387.6 MB, free: 9.027 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.01708, allocations: 0.5001 MB / 388.1 MB, free: 8.516 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.01726, allocations: 79.95 kB / 388.1 MB, free: 8.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.01746, allocations: 119.8 kB / 388.2 MB, free: 8.305 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002881/0.01775, allocations: 184 kB / 388.4 MB, free: 8.109 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.01775, allocations: 0 / 388.4 MB, free: 8.109 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004779/0.01823, allocations: 332.7 kB / 388.8 MB, free: 7.773 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.01825, allocations: 8 kB / 388.8 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.01825, allocations: 0 / 388.8 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003062/0.01856, allocations: 159.6 kB / 388.9 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.0187, allocations: 59.84 kB / 389 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005443/0.01925, allocations: 0.9053 MB / 389.9 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.01937, allocations: 27.97 kB / 389.9 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.293e-05/0.01939, allocations: 12 kB / 389.9 MB, free: 6.57 MB / 362.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.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * 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 0.0001305/0.01952, allocations: 180.8 kB / 390.1 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.477e-05/0.01957, allocations: 43.78 kB / 390.1 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.328e-05/0.01963, allocations: 34.66 kB / 390.2 MB, free: 6.305 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01963, allocations: 0 / 390.2 MB, free: 6.305 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.01964, allocations: 4 kB / 390.2 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.01964, allocations: 3.984 kB / 390.2 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009398/0.02058, allocations: 0.7849 MB / 391 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.02059, allocations: 0 / 391 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.02072, allocations: 47.91 kB / 391 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002215/0.02094, allocations: 147.5 kB / 391.2 MB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.02097, allocations: 7.984 kB / 391.2 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000459/0.02142, allocations: 0.8936 MB / 392.1 MB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.02143, allocations: 3.938 kB / 392.1 MB, free: 4.324 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006069/0.02203, allocations: 0.5129 MB / 392.6 MB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.213e-05/0.02212, allocations: 47.81 kB / 392.6 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.917e-05/0.02216, allocations: 15.94 kB / 392.6 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.02226, allocations: 27.97 kB / 392.7 MB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.508e-05/0.02235, allocations: 51.95 kB / 392.7 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.02237, allocations: 15.98 kB / 392.7 MB, free: 3.629 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.046e-05/0.02246, allocations: 167.4 kB / 392.9 MB, free: 3.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02246, allocations: 0 / 392.9 MB, free: 3.465 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002649/0.02273, allocations: 68 kB / 393 MB, free: 3.398 MB / 362.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.0008294/0.02356, allocations: 356.3 kB / 393.3 MB, free: 3.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004199/0.02398, allocations: 227.6 kB / 393.5 MB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.02398, allocations: 0 / 393.5 MB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.02415, allocations: 128.3 kB / 393.7 MB, free: 2.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.02444, allocations: 51.89 kB / 393.7 MB, free: 2.738 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.02577, allocations: 0.6499 MB / 394.4 MB, free: 2.059 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.074e-05/0.02583, allocations: 89.05 kB / 394.4 MB, free: 1.949 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.628e-05/0.0259, allocations: 22.42 kB / 394.5 MB, free: 1.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.319e-05/0.02596, allocations: 28.48 kB / 394.5 MB, free: 1.902 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.02596, allocations: 0 / 394.5 MB, free: 1.902 MB / 362.7 MB Notification: Performance of Templates: time 0.006735/0.03269, allocations: 4.35 MB / 398.8 MB, free: 13.57 MB / 378.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.3467896771617234]