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.0009321/0.0009322, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.7 MB / 246.8 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003335, allocations: 11.98 kB / 307.7 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09463, allocations: 51.52 MB / 359.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002877/0.09754, allocations: 2.254 MB / 361.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.09877, allocations: 0.5733 MB / 362.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002177/0.09901, allocations: 4 kB / 362.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002934/0.09931, allocations: 55.62 kB / 362.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000335/0.09966, allocations: 115.4 kB / 362.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.09999, allocations: 139.8 kB / 362.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004524/0.1005, allocations: 499 kB / 362.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.1006, allocations: 60.7 kB / 362.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.1008, allocations: 211.2 kB / 363.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.1011, allocations: 231.2 kB / 363.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.198e-05/0.1012, allocations: 24 kB / 363.4 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.1013, allocations: 71.97 kB / 363.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1015, allocations: 95.62 kB / 363.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.1017, allocations: 200.8 kB / 363.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004611/0.1022, allocations: 482.6 kB / 364.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1022, allocations: 0 / 364.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1022, allocations: 0 / 364.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1022, allocations: 3.938 kB / 364.2 MB, free: 8.34 MB / 302.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.001234/0.1034, allocations: 0.6512 MB / 364.9 MB, free: 7.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1035, allocations: 12.03 kB / 364.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.29e-05/0.1036, allocations: 36.47 kB / 364.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.1039, allocations: 299.5 kB / 365.2 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.1039, allocations: 21.03 kB / 365.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.801e-05/0.104, allocations: 36.38 kB / 365.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/0.1047, allocations: 378.5 kB / 365.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1047, allocations: 4.188 kB / 365.6 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.1048, allocations: 11.94 kB / 365.7 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.1048, allocations: 12 kB / 365.7 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007896/0.1056, allocations: 390.4 kB / 366.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.1076, allocations: 1.159 MB / 367.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.1082, allocations: 331.3 kB / 367.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003642/0.1086, allocations: 197.4 kB / 367.7 MB, free: 4.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.183e-05/0.1086, allocations: 15.94 kB / 367.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.1086, allocations: 42.55 kB / 367.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.1086, allocations: 0 / 367.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004755/0.1134, allocations: 2.088 MB / 369.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.1134, allocations: 55.84 kB / 369.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.1137, allocations: 252.9 kB / 370.2 MB, free: 2.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.289e-05/0.1138, allocations: 49.7 kB / 370.2 MB, free: 1.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.1139, allocations: 152.8 kB / 370.4 MB, free: 1.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.1141, allocations: 161.8 kB / 370.5 MB, free: 1.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.289e-05/0.1141, allocations: 45.69 kB / 370.6 MB, free: 1.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1143, allocations: 338.8 kB / 370.9 MB, free: 1.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004295/0.1147, allocations: 197 kB / 371.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/0.1151, allocations: 272.8 kB / 371.4 MB, free: 0.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006212/0.1158, allocations: 361.6 kB / 371.7 MB, free: 428 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1158, allocations: 4 kB / 371.7 MB, free: 424 kB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.1676/0.2834, allocations: 0.6072 MB / 372.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.2834, allocations: 6.547 kB / 372.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.2834, allocations: 1.875 kB / 372.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007711/0.2842, allocations: 340.4 kB / 372.7 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.2846, allocations: 74.55 kB / 372.7 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.2856, allocations: 1.36 MB / 374.1 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/0.2862, allocations: 101.5 kB / 374.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.2863, allocations: 18.66 kB / 374.2 MB, free: 18.12 MB / 302.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.0001956/0.2865, allocations: 171.2 kB / 374.4 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.2865, allocations: 38.88 kB / 374.4 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.2867, allocations: 51.28 kB / 374.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.2867, allocations: 8.906 kB / 374.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2867, allocations: 0.6562 kB / 374.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.2867, allocations: 1.922 kB / 374.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002863/0.2896, allocations: 1.388 MB / 375.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.2896, allocations: 2.781 kB / 375.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.2899, allocations: 55.59 kB / 375.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006484/0.2905, allocations: 311.2 kB / 376.2 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.2906, allocations: 24.45 kB / 376.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009324/0.2915, allocations: 1.313 MB / 377.6 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2915, allocations: 2.75 kB / 377.6 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.2932, allocations: 0.9241 MB / 378.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.2934, allocations: 164.5 kB / 378.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.672e-05/0.2935, allocations: 19.38 kB / 378.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003474/0.2938, allocations: 50.73 kB / 378.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.294, allocations: 92.91 kB / 378.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.12e-05/0.2941, allocations: 22.91 kB / 378.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001745/0.2943, allocations: 181.6 kB / 379 MB, free: 15.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.2943, allocations: 1.031 kB / 379 MB, free: 15.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004648/0.2947, allocations: 105.2 kB / 379.1 MB, free: 15.76 MB / 302.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.0008191/0.2956, allocations: 376.2 kB / 379.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009621/0.2965, allocations: 0.4969 MB / 380 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2966, allocations: 0.9062 kB / 380 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005599/0.2971, allocations: 286.4 kB / 380.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005523/0.2977, allocations: 56.44 kB / 380.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002311/0.3, allocations: 1.282 MB / 381.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.3002, allocations: 0.7924 MB / 382.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.3004, allocations: 35.06 kB / 382.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.473e-05/0.3005, allocations: 38.55 kB / 382.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3005, allocations: 0 / 382.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01288/0.3134, allocations: 8.048 MB / 390.5 MB, free: 11.2 MB / 302.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