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.00113/0.00113, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2695, allocations: 50.55 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004237/0.2738, allocations: 3.163 MB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.2756, allocations: 1.126 MB / 413.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001622/0.2758, allocations: 8 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003169/0.2761, allocations: 87.17 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003807/0.2765, allocations: 186.6 kB / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.2769, allocations: 199.6 kB / 414 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005881/0.2775, allocations: 0.6707 MB / 414.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.2778, allocations: 128.2 kB / 414.8 MB, free: 12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.2781, allocations: 307 kB / 415.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003943/0.2785, allocations: 310.8 kB / 415.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.864e-05/0.2786, allocations: 55.94 kB / 415.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.2788, allocations: 120 kB / 415.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.279, allocations: 127.6 kB / 415.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.2793, allocations: 270.6 kB / 416 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000651/0.2799, allocations: 0.6474 MB / 416.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2799, allocations: 0 / 416.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2799, allocations: 0 / 416.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.28, allocations: 0 / 416.6 MB, free: 10.19 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.001393/0.2814, allocations: 0.8302 MB / 417.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2814, allocations: 8.031 kB / 417.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002058/0.2816, allocations: 56.38 kB / 417.5 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000459/0.2821, allocations: 351.1 kB / 417.9 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.2821, allocations: 33.38 kB / 417.9 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.478e-05/0.2822, allocations: 48.36 kB / 417.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008295/0.283, allocations: 474.5 kB / 418.4 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.2831, allocations: 7.906 kB / 418.4 MB, free: 8.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.2831, allocations: 16 kB / 418.4 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.2831, allocations: 8 kB / 418.4 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009542/0.2841, allocations: 475.6 kB / 418.9 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.2861, allocations: 1.133 MB / 420 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008765/0.287, allocations: 428.2 kB / 420.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005384/0.2876, allocations: 270.4 kB / 420.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.888e-05/0.2876, allocations: 4.562 kB / 420.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.2877, allocations: 43.12 kB / 420.8 MB, free: 5.879 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 1.693e-06/0.2877, allocations: 0 / 420.8 MB, free: 5.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004998/0.2927, allocations: 2.316 MB / 423.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.2927, allocations: 63.97 kB / 423.1 MB, free: 3.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.293, allocations: 312.4 kB / 423.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.467e-05/0.2931, allocations: 49.62 kB / 423.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.2932, allocations: 185.4 kB / 423.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.2934, allocations: 213.1 kB / 423.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.2936, allocations: 106.2 kB / 424 MB, free: 2.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.2937, allocations: 346.8 kB / 424.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004471/0.2941, allocations: 233.2 kB / 424.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004746/0.2946, allocations: 272.8 kB / 424.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007123/0.2953, allocations: 390.4 kB / 425.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2953, allocations: 0 / 425.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001534/0.2969, allocations: 0.756 MB / 425.9 MB, free: 496 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.2969, allocations: 8.031 kB / 426 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2969, allocations: 3.984 kB / 426 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008277/0.2978, allocations: 373.4 kB / 426.3 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003118/0.2981, allocations: 79.89 kB / 426.4 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/0.2996, allocations: 1.405 MB / 427.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004348/0.3, allocations: 72.02 kB / 427.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.294e-05/0.3001, allocations: 28 kB / 427.9 MB, free: 14.46 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.0002599/0.3004, allocations: 177.6 kB / 428.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.566e-05/0.3005, allocations: 43.47 kB / 428.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.3006, allocations: 60.52 kB / 428.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.3006, allocations: 8 kB / 428.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3006, allocations: 0 / 428.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.3006, allocations: 3.984 kB / 428.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.3031, allocations: 1.467 MB / 429.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3031, allocations: 0 / 429.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003509/0.3035, allocations: 83.89 kB / 429.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006925/0.3042, allocations: 341.7 kB / 430.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.092e-05/0.3042, allocations: 23.97 kB / 430.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.3055, allocations: 1.358 MB / 431.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.3055, allocations: 4.156 kB / 431.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.3073, allocations: 1.066 MB / 432.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/0.3075, allocations: 168.6 kB / 432.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.066e-05/0.3076, allocations: 27.88 kB / 432.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003892/0.308, allocations: 59.94 kB / 432.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.3082, allocations: 100.4 kB / 432.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.728e-05/0.3083, allocations: 27.97 kB / 432.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002103/0.3085, allocations: 215.1 kB / 433.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3085, allocations: 0 / 433.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.309, allocations: 132 kB / 433.2 MB, free: 8.926 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.0008266/0.3098, allocations: 377.8 kB / 433.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.311, allocations: 0.582 MB / 434.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3111, allocations: 0 / 434.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008366/0.3119, allocations: 347 kB / 434.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.3126, allocations: 96.66 kB / 434.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003517/0.3161, allocations: 1.468 MB / 436.1 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005993/0.3167, allocations: 0.8323 MB / 436.9 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001493/0.3168, allocations: 39.41 kB / 437 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.317, allocations: 39.42 kB / 437 MB, free: 5.199 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.317, allocations: 0 / 437 MB, free: 5.199 MB / 350.1 MB Notification: Performance of Templates: time 0.01594/0.3329, allocations: 10.07 MB / 447.1 MB, free: 11.18 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches