Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00244/0.00244, allocations: 91.62 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002849/0.002849, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.668/1.668, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3532/0.3532, allocations: 34.26 MB / 295.3 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 377.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.622e-05/2.803e-05, allocations: 2.312 kB / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004489/0.004517, allocations: 2.373 MB / 379.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.006506, allocations: 0.8841 MB / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.006642, allocations: 7.938 kB / 380.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002997/0.006942, allocations: 47.56 kB / 380.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.00717, allocations: 83.28 kB / 380.7 MB, free: 15.58 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004158/0.007586, allocations: 151.5 kB / 380.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004535/0.008039, allocations: 359.1 kB / 381.2 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.008214, allocations: 65.12 kB / 381.2 MB, free: 15.01 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003765/0.008591, allocations: 215.5 kB / 381.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.00885, allocations: 131.7 kB / 381.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.897e-05/0.008909, allocations: 24 kB / 381.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.00909, allocations: 91.84 kB / 381.7 MB, free: 14.55 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.009225, allocations: 75.73 kB / 381.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.009368, allocations: 99.73 kB / 381.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005859/0.009954, allocations: 398.8 kB / 382.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.009958, allocations: 0 / 382.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.009959, allocations: 3.938 kB / 382.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.009965, allocations: 0 / 382.2 MB, free: 13.99 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.001043/0.01101, allocations: 0.6125 MB / 382.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.01105, allocations: 12.03 kB / 382.9 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.01126, allocations: 56.73 kB / 382.9 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/0.01161, allocations: 208.8 kB / 383.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.34e-05/0.01164, allocations: 20.88 kB / 383.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.419e-05/0.01171, allocations: 24.38 kB / 383.2 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005293/0.01224, allocations: 256.5 kB / 383.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.01225, allocations: 192 / 383.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.01229, allocations: 12.38 kB / 383.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.0123, allocations: 7.938 kB / 383.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000543/0.01284, allocations: 221.9 kB / 383.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.01428, allocations: 0.6818 MB / 384.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000824/0.01511, allocations: 234.8 kB / 384.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.01537, allocations: 123.6 kB / 384.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.071e-05/0.01541, allocations: 4.438 kB / 384.7 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.01545, allocations: 41.39 kB / 384.7 MB, free: 11.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.172e-06/0.01546, allocations: 0 / 384.7 MB, free: 11.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.003228/0.01868, allocations: 1.169 MB / 385.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.01874, allocations: 59.41 kB / 386 MB, free: 10.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002856/0.01902, allocations: 262 kB / 386.2 MB, free: 9.793 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.01907, allocations: 37.7 kB / 386.2 MB, free: 9.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001585/0.01923, allocations: 195.4 kB / 386.4 MB, free: 9.555 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.01936, allocations: 127.1 kB / 386.6 MB, free: 9.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.01951, allocations: 83.34 kB / 386.6 MB, free: 9.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002967/0.01981, allocations: 0.5079 MB / 387.2 MB, free: 8.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.02007, allocations: 116 kB / 387.3 MB, free: 8.707 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003145/0.02038, allocations: 170.7 kB / 387.4 MB, free: 8.523 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005044/0.02088, allocations: 264 kB / 387.7 MB, free: 8.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.02089, allocations: 0 / 387.7 MB, free: 8.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009749/0.02186, allocations: 440.6 kB / 388.1 MB, free: 7.809 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.02188, allocations: 8 kB / 388.1 MB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.02189, allocations: 0 / 388.1 MB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000515/0.0224, allocations: 191.6 kB / 388.3 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.02265, allocations: 59.91 kB / 388.4 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.0237, allocations: 0.9951 MB / 389.4 MB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/0.02392, allocations: 27.97 kB / 389.4 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.984e-05/0.02395, allocations: 8 kB / 389.4 MB, free: 6.488 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.0002064/0.02416, allocations: 196.5 kB / 389.6 MB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.749e-05/0.02425, allocations: 35.8 kB / 389.6 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.02436, allocations: 42.58 kB / 389.7 MB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.02436, allocations: 4 kB / 389.7 MB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.02437, allocations: 0 / 389.7 MB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.02438, allocations: 3.984 kB / 389.7 MB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.02618, allocations: 0.9098 MB / 390.6 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.02618, allocations: 0 / 390.6 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/0.02643, allocations: 48.03 kB / 390.6 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004145/0.02684, allocations: 175.5 kB / 390.8 MB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.02688, allocations: 11.98 kB / 390.8 MB, free: 5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.02806, allocations: 0.9444 MB / 391.8 MB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.02806, allocations: 7.938 kB / 391.8 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.02933, allocations: 0.6497 MB / 392.4 MB, free: 3.336 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.02947, allocations: 51.81 kB / 392.5 MB, free: 3.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.75e-05/0.02953, allocations: 11.94 kB / 392.5 MB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.02975, allocations: 23.97 kB / 392.5 MB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.02989, allocations: 51.91 kB / 392.6 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.02992, allocations: 11.98 kB / 392.6 MB, free: 3.188 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001688/0.03009, allocations: 183.4 kB / 392.7 MB, free: 3.008 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03009, allocations: 0 / 392.7 MB, free: 3.008 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003874/0.03048, allocations: 75.98 kB / 392.8 MB, free: 2.934 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.00255/0.03303, allocations: 402.2 kB / 393.2 MB, free: 2.688 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008561/0.03388, allocations: 312.2 kB / 393.5 MB, free: 2.379 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.03388, allocations: 0 / 393.5 MB, free: 2.379 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.03426, allocations: 160.3 kB / 393.7 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004676/0.03473, allocations: 56.08 kB / 393.7 MB, free: 2.164 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.03656, allocations: 0.6707 MB / 394.4 MB, free: 1.461 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.03673, allocations: 146.9 kB / 394.5 MB, free: 1.297 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.03683, allocations: 26.28 kB / 394.6 MB, free: 1.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.012e-05/0.03691, allocations: 28.48 kB / 394.6 MB, free: 1.242 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.03691, allocations: 0 / 394.6 MB, free: 1.242 MB / 362.7 MB Notification: Performance of Templates: time 0.0105/0.04741, allocations: 4.363 MB / 399 MB, free: 12.91 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.320281063904986]