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.00135/0.001355, allocations: 112.4 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.001579/0.00158, allocations: 204 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.44/1.44, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 59.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2544, allocations: 50.54 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004041/0.2584, allocations: 2.573 MB / 412.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.2597, allocations: 0.5849 MB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.2599, allocations: 0 / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000325/0.2602, allocations: 71.42 kB / 413.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003059/0.2606, allocations: 135 kB / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.2609, allocations: 163.7 kB / 413.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005169/0.2614, allocations: 0.503 MB / 413.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.2616, allocations: 79.81 kB / 414 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.2619, allocations: 227.3 kB / 414.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003339/0.2623, allocations: 255.1 kB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.301e-05/0.2624, allocations: 40 kB / 414.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002001/0.2626, allocations: 91.98 kB / 414.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.2627, allocations: 111.7 kB / 414.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.2629, allocations: 206.9 kB / 414.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005574/0.2635, allocations: 0.5074 MB / 415.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2635, allocations: 0 / 415.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2635, allocations: 0 / 415.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2635, allocations: 0 / 415.4 MB, free: 12.03 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.001392/0.2649, allocations: 0.6977 MB / 416.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.265, allocations: 12.03 kB / 416.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.2651, allocations: 36.47 kB / 416.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.2656, allocations: 303.5 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.2656, allocations: 25.03 kB / 416.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.821e-05/0.2657, allocations: 32.36 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007273/0.2664, allocations: 382.5 kB / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.2664, allocations: 4.094 kB / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.157e-05/0.2665, allocations: 19.94 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.2665, allocations: 8 kB / 416.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007774/0.2673, allocations: 382.4 kB / 417.3 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.2693, allocations: 1.123 MB / 418.4 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006149/0.2699, allocations: 326.6 kB / 418.7 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000352/0.2703, allocations: 192.8 kB / 418.9 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/0.2704, allocations: 8 kB / 418.9 MB, free: 8.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.2704, allocations: 38.56 kB / 419 MB, free: 8.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.235e-06/0.2704, allocations: 0 / 419 MB, free: 8.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004794/0.2752, allocations: 1.995 MB / 421 MB, free: 6.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.2753, allocations: 59.84 kB / 421 MB, free: 6.074 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.2756, allocations: 256.9 kB / 421.3 MB, free: 5.816 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.492e-05/0.2756, allocations: 41.7 kB / 421.3 MB, free: 5.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.2758, allocations: 152.8 kB / 421.5 MB, free: 5.617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.2759, allocations: 165.8 kB / 421.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.2761, allocations: 94.14 kB / 421.7 MB, free: 5.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.2762, allocations: 342.8 kB / 422.1 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003847/0.2766, allocations: 193 kB / 422.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.2771, allocations: 272.8 kB / 422.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000624/0.2777, allocations: 361.6 kB / 422.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2777, allocations: 0 / 422.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001221/0.2789, allocations: 0.6107 MB / 423.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.279, allocations: 7.984 kB / 423.5 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.279, allocations: 4 kB / 423.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007326/0.2797, allocations: 341.5 kB / 423.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.28, allocations: 75.84 kB / 423.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.2814, allocations: 1.37 MB / 425.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004787/0.2819, allocations: 63.92 kB / 425.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.2819, allocations: 19.98 kB / 425.4 MB, free: 1.602 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.0002235/0.2822, allocations: 169.7 kB / 425.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.042e-05/0.2822, allocations: 35.56 kB / 425.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.2824, allocations: 55.61 kB / 425.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.2824, allocations: 4 kB / 425.6 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.2824, allocations: 0 / 425.6 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2824, allocations: 3.984 kB / 425.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/0.2852, allocations: 1.343 MB / 427 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.2853, allocations: 0 / 427 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002761/0.2856, allocations: 63.91 kB / 427 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000621/0.2862, allocations: 305.7 kB / 427.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.885e-05/0.2863, allocations: 19.98 kB / 427.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/0.2875, allocations: 1.316 MB / 428.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.2875, allocations: 7.922 kB / 428.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.2893, allocations: 0.906 MB / 429.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.2895, allocations: 156.6 kB / 429.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.374e-05/0.2896, allocations: 24.12 kB / 429.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003337/0.2899, allocations: 43.89 kB / 429.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001817/0.2901, allocations: 95.73 kB / 429.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.2902, allocations: 15.98 kB / 429.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.2904, allocations: 188.5 kB / 430.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2904, allocations: 0 / 430.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004543/0.2908, allocations: 92 kB / 430.2 MB, free: 12.58 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.0009118/0.2918, allocations: 389.1 kB / 430.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.2929, allocations: 0.4973 MB / 431 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2929, allocations: 0 / 431 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005743/0.2935, allocations: 288.1 kB / 431.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.294, allocations: 61.14 kB / 431.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.2965, allocations: 1.072 MB / 432.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.2969, allocations: 0.7878 MB / 433.2 MB, free: 9.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.2971, allocations: 43.36 kB / 433.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2971, allocations: 0 / 433.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of Templates: time 0.009919/0.307, allocations: 7.123 MB / 440.4 MB, free: 2.379 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches