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.001617/0.001617, allocations: 117.7 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001942/0.001942, allocations: 200.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.423/1.423, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 67.83 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2748, allocations: 50.54 MB / 409.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005065/0.2799, allocations: 3.163 MB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002399/0.2824, allocations: 1.13 MB / 414.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004064/0.2828, allocations: 7.938 kB / 414.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004328/0.2833, allocations: 79.25 kB / 414.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006511/0.284, allocations: 182.6 kB / 414.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.2846, allocations: 207.6 kB / 414.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008932/0.2855, allocations: 0.6629 MB / 415.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002936/0.2858, allocations: 140.2 kB / 415.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005832/0.2864, allocations: 307 kB / 415.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005301/0.2869, allocations: 306.9 kB / 416.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.2871, allocations: 48 kB / 416.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003095/0.2874, allocations: 119.9 kB / 416.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.2876, allocations: 135.6 kB / 416.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003552/0.288, allocations: 266.7 kB / 416.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009042/0.2889, allocations: 0.6473 MB / 417.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2889, allocations: 0 / 417.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2889, allocations: 0 / 417.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.2889, allocations: 4 kB / 417.3 MB, free: 10.13 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.001823/0.2908, allocations: 0.8262 MB / 418.1 MB, free: 9.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.2908, allocations: 12.03 kB / 418.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002588/0.2911, allocations: 56.36 kB / 418.2 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005782/0.2917, allocations: 351.1 kB / 418.5 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.2917, allocations: 33.38 kB / 418.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.19e-05/0.2918, allocations: 44.38 kB / 418.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000996/0.2928, allocations: 478.6 kB / 419.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.2929, allocations: 3.906 kB / 419.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.347e-05/0.2929, allocations: 16 kB / 419.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.293, allocations: 8 kB / 419.1 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009971/0.294, allocations: 467.7 kB / 419.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.2962, allocations: 1.141 MB / 420.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009022/0.2972, allocations: 426 kB / 421.1 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005389/0.2977, allocations: 278.3 kB / 421.4 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-05/0.2978, allocations: 4.562 kB / 421.4 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.2978, allocations: 39.12 kB / 421.4 MB, free: 5.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 2.685e-06/0.2978, allocations: 0 / 421.4 MB, free: 5.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.005641/0.3035, allocations: 2.32 MB / 423.7 MB, free: 3.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.3036, allocations: 55.97 kB / 423.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/0.304, allocations: 316.5 kB / 424.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.4e-05/0.3041, allocations: 45.64 kB / 424.2 MB, free: 2.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.3042, allocations: 185.4 kB / 424.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.3044, allocations: 209.1 kB / 424.5 MB, free: 2.551 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002032/0.3046, allocations: 106.2 kB / 424.6 MB, free: 2.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.3048, allocations: 350.8 kB / 425 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.3053, allocations: 225.2 kB / 425.2 MB, free: 1.867 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005036/0.3058, allocations: 280.8 kB / 425.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007924/0.3066, allocations: 390.4 kB / 425.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3066, allocations: 3.938 kB / 425.9 MB, free: 1.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001675/0.3083, allocations: 0.7521 MB / 426.6 MB, free: 444 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3083, allocations: 4 kB / 426.6 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.3083, allocations: 4 kB / 426.6 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009065/0.3093, allocations: 377.5 kB / 427 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003494/0.3096, allocations: 75.97 kB / 427.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.3111, allocations: 1.413 MB / 428.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/0.3117, allocations: 71.94 kB / 428.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-05/0.3117, allocations: 20 kB / 428.6 MB, free: 14.42 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.0002838/0.312, allocations: 181.7 kB / 428.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.3122, allocations: 43.47 kB / 428.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.3123, allocations: 64.5 kB / 428.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3123, allocations: 8 kB / 428.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.3123, allocations: 0 / 428.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3124, allocations: 3.984 kB / 428.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/0.3153, allocations: 1.463 MB / 430.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3153, allocations: 4 kB / 430.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000366/0.3157, allocations: 83.89 kB / 430.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007989/0.3165, allocations: 345.6 kB / 430.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.407e-05/0.3166, allocations: 27.97 kB / 430.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.3179, allocations: 1.358 MB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3179, allocations: 4.031 kB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/0.32, allocations: 1.059 MB / 433.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/0.3202, allocations: 172.5 kB / 433.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.3204, allocations: 19.94 kB / 433.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.3208, allocations: 63.92 kB / 433.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.3211, allocations: 104.4 kB / 433.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.583e-05/0.3211, allocations: 19.98 kB / 433.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.3214, allocations: 223.1 kB / 433.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3214, allocations: 0 / 433.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005172/0.3219, allocations: 124 kB / 433.9 MB, free: 8.875 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.000917/0.3228, allocations: 380 kB / 434.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.3242, allocations: 0.5781 MB / 434.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3243, allocations: 8.062 kB / 434.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007507/0.325, allocations: 335.1 kB / 435.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007436/0.3258, allocations: 96.78 kB / 435.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.3299, allocations: 1.506 MB / 436.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.3304, allocations: 0.8245 MB / 437.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3306, allocations: 47.36 kB / 437.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3306, allocations: 4 kB / 437.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of Templates: time 0.0138/0.3444, allocations: 9.117 MB / 446.8 MB, free: 12.05 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