Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.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.001685/0.001685, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 14.72 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.001928/0.001928, allocations: 169.5 kB / 24.5 MB, free: 3.453 MB / 14.72 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.43/1.43, allocations: 177.2 MB / 204.9 MB, free: 9.051 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 55.69 kB / 325.6 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09294/0.09456, allocations: 53.34 MB / 378.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005089/0.09965, allocations: 2.955 MB / 381.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.1017, allocations: 1.095 MB / 383 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.1018, allocations: 11.94 kB / 383 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003071/0.1021, allocations: 83.23 kB / 383 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004102/0.1025, allocations: 190.6 kB / 383.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.1029, allocations: 199.7 kB / 383.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006951/0.1036, allocations: 0.6784 MB / 384.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002051/0.1038, allocations: 97.23 kB / 384.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004191/0.1043, allocations: 311 kB / 384.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.1047, allocations: 282.9 kB / 384.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.303e-05/0.1048, allocations: 52 kB / 384.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002092/0.105, allocations: 112 kB / 384.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.1052, allocations: 139.5 kB / 385.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002438/0.1054, allocations: 235 kB / 385.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007428/0.1061, allocations: 0.6498 MB / 386 MB, free: 8.605 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1061, allocations: 0 / 386 MB, free: 8.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1062, allocations: 0 / 386 MB, free: 8.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1062, allocations: 0 / 386 MB, free: 8.605 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001529/0.1077, allocations: 0.7621 MB / 386.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.1077, allocations: 12.03 kB / 386.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.1079, allocations: 64.56 kB / 386.8 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005247/0.1085, allocations: 290.2 kB / 387.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.184e-05/0.1085, allocations: 41.31 kB / 387.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.498e-05/0.1086, allocations: 48.33 kB / 387.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008912/0.1095, allocations: 470.6 kB / 387.6 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.542e-05/0.1095, allocations: 7.953 kB / 387.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/0.1096, allocations: 19.94 kB / 387.6 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.1096, allocations: 8 kB / 387.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.1106, allocations: 463.7 kB / 388.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.1126, allocations: 0.9238 MB / 389 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009078/0.1135, allocations: 401.6 kB / 389.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000536/0.114, allocations: 242.2 kB / 389.7 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.145e-05/0.114, allocations: 12.5 kB / 389.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.1141, allocations: 39.06 kB / 389.7 MB, free: 4.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.874e-06/0.1141, allocations: 0 / 389.7 MB, free: 4.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005293/0.1194, allocations: 2.01 MB / 391.7 MB, free: 2.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.1194, allocations: 67.84 kB / 391.8 MB, free: 2.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003263/0.1198, allocations: 288.2 kB / 392.1 MB, free: 2.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-05/0.1198, allocations: 45.7 kB / 392.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.12, allocations: 181.6 kB / 392.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.1201, allocations: 218.2 kB / 392.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.1204, allocations: 110.3 kB / 392.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1205, allocations: 346.8 kB / 393 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004905/0.121, allocations: 229.2 kB / 393.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005256/0.1215, allocations: 284.8 kB / 393.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008173/0.1224, allocations: 390.1 kB / 393.8 MB, free: 496 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1224, allocations: 0 / 393.8 MB, free: 496 kB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001657/0.124, allocations: 0.7446 MB / 394.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.124, allocations: 4 kB / 394.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.124, allocations: 4 kB / 394.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008739/0.1249, allocations: 369.4 kB / 394.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.1252, allocations: 91.83 kB / 395 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001447/0.1267, allocations: 1.397 MB / 396.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005083/0.1272, allocations: 75.94 kB / 396.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/0.1272, allocations: 20.12 kB / 396.5 MB, free: 13.71 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002296/0.1275, allocations: 174.4 kB / 396.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.963e-05/0.1276, allocations: 47.66 kB / 396.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.1277, allocations: 59.69 kB / 396.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.1277, allocations: 8 kB / 396.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1277, allocations: 0 / 396.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.1277, allocations: 7.922 kB / 396.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002834/0.1306, allocations: 1.27 MB / 398.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.1306, allocations: 4 kB / 398.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003809/0.131, allocations: 88.05 kB / 398.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007679/0.1317, allocations: 345.4 kB / 398.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.413e-05/0.1318, allocations: 19.97 kB / 398.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/0.1332, allocations: 1.358 MB / 399.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1332, allocations: 128 / 399.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.1354, allocations: 1.053 MB / 400.9 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.1356, allocations: 87.73 kB / 401 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.068e-05/0.1357, allocations: 20 kB / 401.1 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004639/0.1361, allocations: 63.92 kB / 401.1 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.1364, allocations: 104.2 kB / 401.2 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.513e-05/0.1364, allocations: 27.95 kB / 401.2 MB, free: 8.836 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002499/0.1367, allocations: 203.1 kB / 401.4 MB, free: 8.641 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1367, allocations: 0 / 401.4 MB, free: 8.641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005559/0.1372, allocations: 131.9 kB / 401.6 MB, free: 8.512 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001731/0.139, allocations: 414.4 kB / 402 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.1404, allocations: 0.5459 MB / 402.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.1404, allocations: 0 / 402.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008973/0.1413, allocations: 326.5 kB / 402.8 MB, free: 7.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006974/0.142, allocations: 93.05 kB / 402.9 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004221/0.1462, allocations: 1.479 MB / 404.4 MB, free: 5.777 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.1465, allocations: 229.3 kB / 404.6 MB, free: 5.527 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001714/0.1467, allocations: 35.31 kB / 404.7 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1468, allocations: 40.48 kB / 404.7 MB, free: 5.449 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1468, allocations: 3.938 kB / 404.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of Templates: time 0.01706/0.1638, allocations: 8.683 MB / 413.4 MB, free: 12.84 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.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: 4.674270924995653]