Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.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.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001597/0.001597, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001823/0.001823, 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.439/1.439, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2624, allocations: 50.56 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003729/0.2661, allocations: 2.565 MB / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.2673, allocations: 0.5733 MB / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.2675, allocations: 4 kB / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.2678, allocations: 75.42 kB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003478/0.2681, allocations: 139 kB / 412.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.2685, allocations: 163.7 kB / 412.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005072/0.269, allocations: 0.5147 MB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2692, allocations: 72.67 kB / 413.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000297/0.2695, allocations: 227.4 kB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003231/0.2698, allocations: 247.1 kB / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.377e-05/0.2699, allocations: 44 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.2701, allocations: 95.97 kB / 413.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.2702, allocations: 115.6 kB / 414.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.2705, allocations: 199 kB / 414.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005354/0.271, allocations: 0.4957 MB / 414.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.271, allocations: 0 / 414.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.271, allocations: 0 / 414.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.271, allocations: 0 / 414.7 MB, free: 12.07 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001249/0.2723, allocations: 0.7016 MB / 415.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.2723, allocations: 8.031 kB / 415.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.691e-05/0.2724, allocations: 40.47 kB / 415.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004312/0.2729, allocations: 311.5 kB / 415.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.2729, allocations: 21.03 kB / 415.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.739e-05/0.273, allocations: 36.36 kB / 415.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007101/0.2737, allocations: 370.5 kB / 416.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.2737, allocations: 8.094 kB / 416.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.2738, allocations: 15.94 kB / 416.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.2738, allocations: 8 kB / 416.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000847/0.2747, allocations: 386.3 kB / 416.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002012/0.2767, allocations: 1.123 MB / 417.7 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005864/0.2773, allocations: 330.6 kB / 418.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003544/0.2777, allocations: 188.8 kB / 418.3 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.455e-05/0.2777, allocations: 4 kB / 418.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.2777, allocations: 34.56 kB / 418.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.543e-06/0.2777, allocations: 0 / 418.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004442/0.2822, allocations: 2.007 MB / 420.3 MB, free: 6.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.2822, allocations: 59.84 kB / 420.4 MB, free: 6.105 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/0.2825, allocations: 256.9 kB / 420.6 MB, free: 5.852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.213e-05/0.2826, allocations: 37.7 kB / 420.6 MB, free: 5.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.475e-05/0.2827, allocations: 156.8 kB / 420.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.2828, allocations: 165.8 kB / 421 MB, free: 5.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.2829, allocations: 94.14 kB / 421 MB, free: 5.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2831, allocations: 346.8 kB / 421.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/0.2835, allocations: 185 kB / 421.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004252/0.2839, allocations: 272.8 kB / 421.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006141/0.2845, allocations: 361.6 kB / 422.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2845, allocations: 0 / 422.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00116/0.2857, allocations: 0.6183 MB / 422.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.2857, allocations: 4 kB / 422.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.2857, allocations: 4 kB / 422.8 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007145/0.2865, allocations: 341.6 kB / 423.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.2867, allocations: 71.84 kB / 423.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.288, allocations: 1.366 MB / 424.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.2884, allocations: 72.06 kB / 424.7 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.2884, allocations: 20 kB / 424.7 MB, free: 1.633 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001785/0.2886, allocations: 165.6 kB / 424.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.204e-05/0.2887, allocations: 35.56 kB / 424.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.2888, allocations: 51.66 kB / 424.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.2888, allocations: 12 kB / 424.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2888, allocations: 0 / 424.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.2888, allocations: 3.984 kB / 424.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0026/0.2914, allocations: 1.343 MB / 426.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2915, allocations: 0 / 426.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.2917, allocations: 63.91 kB / 426.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005817/0.2923, allocations: 305.6 kB / 426.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.657e-05/0.2924, allocations: 24.22 kB / 426.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.2936, allocations: 1.315 MB / 428 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.2936, allocations: 4.031 kB / 428 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.2953, allocations: 0.9177 MB / 428.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.2955, allocations: 156.6 kB / 429.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.003e-05/0.2956, allocations: 20 kB / 429.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.2959, allocations: 35.95 kB / 429.1 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.2961, allocations: 91.73 kB / 429.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.2961, allocations: 23.97 kB / 429.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001753/0.2963, allocations: 184.5 kB / 429.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2963, allocations: 0 / 429.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000409/0.2967, allocations: 96 kB / 429.5 MB, free: 12.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008091/0.2975, allocations: 381.7 kB / 429.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.2986, allocations: 0.4894 MB / 430.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2986, allocations: 0 / 430.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006093/0.2992, allocations: 300.7 kB / 430.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004947/0.2997, allocations: 62.92 kB / 430.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.302, allocations: 1.039 MB / 431.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.3023, allocations: 0.7839 MB / 432.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.3025, allocations: 38.97 kB / 432.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.3026, allocations: 35.42 kB / 432.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3026, allocations: 4 kB / 432.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of Templates: time 0.01332/0.3159, allocations: 8.677 MB / 441.3 MB, free: 0.8945 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches