Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001228/0.001228, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 59.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2904, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004864/0.2953, allocations: 3.171 MB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.2978, allocations: 1.126 MB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004749/0.2983, allocations: 8 kB / 414.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006235/0.299, allocations: 87.22 kB / 414.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001068/0.3001, allocations: 182.6 kB / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008417/0.301, allocations: 199.6 kB / 414.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001275/0.3023, allocations: 0.6668 MB / 415.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.3027, allocations: 132.2 kB / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007598/0.3035, allocations: 307 kB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006874/0.3042, allocations: 314.9 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.3044, allocations: 55.94 kB / 416.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000416/0.3048, allocations: 111.9 kB / 416.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.3051, allocations: 135.6 kB / 416.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003588/0.3054, allocations: 266.7 kB / 416.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.3065, allocations: 0.6435 MB / 417.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3065, allocations: 0 / 417.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3065, allocations: 0 / 417.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.3066, allocations: 0 / 417.3 MB, free: 10.18 MB / 334.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.001679/0.3082, allocations: 0.8302 MB / 418.1 MB, free: 9.297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3083, allocations: 8.031 kB / 418.1 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000255/0.3086, allocations: 60.36 kB / 418.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000554/0.3091, allocations: 359.1 kB / 418.5 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.099e-05/0.3092, allocations: 29.38 kB / 418.6 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.348e-05/0.3093, allocations: 48.36 kB / 418.6 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008827/0.3102, allocations: 470.6 kB / 419.1 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.3102, allocations: 7.891 kB / 419.1 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.618e-05/0.3103, allocations: 16 kB / 419.1 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.3103, allocations: 12 kB / 419.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009462/0.3112, allocations: 479.6 kB / 419.6 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002173/0.3134, allocations: 1.125 MB / 420.7 MB, free: 6.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000881/0.3143, allocations: 422 kB / 421.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007004/0.315, allocations: 270.4 kB / 421.4 MB, free: 5.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.607e-05/0.3151, allocations: 16.53 kB / 421.4 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.3152, allocations: 39.12 kB / 421.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 3.957e-06/0.3152, allocations: 0 / 421.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.007833/0.323, allocations: 2.313 MB / 423.7 MB, free: 3.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.3231, allocations: 59.97 kB / 423.8 MB, free: 3.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/0.3236, allocations: 312.4 kB / 424.1 MB, free: 3.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.222e-05/0.3237, allocations: 45.7 kB / 424.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.3239, allocations: 185.4 kB / 424.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002231/0.3242, allocations: 205.1 kB / 424.5 MB, free: 2.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002673/0.3244, allocations: 114.2 kB / 424.6 MB, free: 2.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3246, allocations: 350.8 kB / 425 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006826/0.3253, allocations: 229.2 kB / 425.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007673/0.3261, allocations: 280.8 kB / 425.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.3273, allocations: 390.4 kB / 425.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3273, allocations: 0 / 425.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.002382/0.3297, allocations: 0.752 MB / 426.6 MB, free: 484 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.3297, allocations: 12.03 kB / 426.6 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3298, allocations: 0 / 426.6 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/0.331, allocations: 373.4 kB / 427 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004981/0.3315, allocations: 87.89 kB / 427.1 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.3335, allocations: 1.401 MB / 428.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007989/0.3343, allocations: 75.94 kB / 428.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.866e-05/0.3344, allocations: 24.11 kB / 428.6 MB, free: 14.45 MB / 350.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.0003811/0.3348, allocations: 173.7 kB / 428.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.3349, allocations: 47.47 kB / 428.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001769/0.3351, allocations: 60.52 kB / 428.9 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.3352, allocations: 7.984 kB / 428.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.3352, allocations: 0 / 428.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.3352, allocations: 3.984 kB / 428.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.338, allocations: 1.467 MB / 430.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.338, allocations: 0 / 430.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.3384, allocations: 87.83 kB / 430.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007509/0.3391, allocations: 341.7 kB / 430.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.993e-05/0.3392, allocations: 19.97 kB / 430.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.3404, allocations: 1.362 MB / 432.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.3404, allocations: 0 / 432.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.3424, allocations: 1.055 MB / 433.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002589/0.3426, allocations: 172.5 kB / 433.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.993e-05/0.3427, allocations: 27.92 kB / 433.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.3432, allocations: 59.94 kB / 433.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.3434, allocations: 104.3 kB / 433.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.027e-05/0.3434, allocations: 23.97 kB / 433.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002163/0.3437, allocations: 219.1 kB / 433.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3437, allocations: 0 / 433.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004841/0.3442, allocations: 128 kB / 433.9 MB, free: 8.918 MB / 350.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.0009187/0.3451, allocations: 388.1 kB / 434.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.3464, allocations: 0.582 MB / 434.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3464, allocations: 0 / 434.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000686/0.3471, allocations: 343 kB / 435.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.3478, allocations: 96.28 kB / 435.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004685/0.3525, allocations: 1.503 MB / 436.8 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.353, allocations: 0.8323 MB / 437.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.3532, allocations: 47.36 kB / 437.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3532, allocations: 0 / 437.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of Templates: time 0.01198/0.3652, allocations: 9.167 MB / 446.8 MB, free: 12.02 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches