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.0008234/0.0008233, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 207.4 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.7 MB / 247.5 MB, free: 9.488 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003064/0.0003065, allocations: 4 kB / 308.4 MB, free: 0.5859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09959/0.09992, allocations: 51.53 MB / 359.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002894/0.1029, allocations: 2.247 MB / 362.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.1039, allocations: 0.5656 MB / 362.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.1041, allocations: 4 kB / 362.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002595/0.1043, allocations: 59.56 kB / 362.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002569/0.1046, allocations: 119.3 kB / 362.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002517/0.1049, allocations: 143.8 kB / 363 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004465/0.1053, allocations: 495 kB / 363.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.1055, allocations: 64.69 kB / 363.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.1057, allocations: 203.2 kB / 363.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.106, allocations: 231.2 kB / 364 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.155e-05/0.1061, allocations: 27.98 kB / 364 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001439/0.1062, allocations: 75.98 kB / 364.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.1064, allocations: 95.62 kB / 364.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.1065, allocations: 192.8 kB / 364.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.1069, allocations: 371.3 kB / 364.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1069, allocations: 0 / 364.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1069, allocations: 4 kB / 364.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1069, allocations: 0 / 364.8 MB, free: 8.176 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.001192/0.1081, allocations: 0.6589 MB / 365.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1081, allocations: 8.031 kB / 365.4 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.581e-05/0.1082, allocations: 40.47 kB / 365.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.1086, allocations: 299.5 kB / 365.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.1086, allocations: 29.03 kB / 365.8 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/0.1087, allocations: 28.38 kB / 365.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007128/0.1094, allocations: 382.5 kB / 366.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.1094, allocations: 192 / 366.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.54e-05/0.1095, allocations: 15.94 kB / 366.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.1095, allocations: 4 kB / 366.2 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007613/0.1103, allocations: 390.4 kB / 366.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.1122, allocations: 1.159 MB / 367.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.1128, allocations: 334.2 kB / 368.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003661/0.1132, allocations: 201.5 kB / 368.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.431e-05/0.1132, allocations: 11.94 kB / 368.3 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.1133, allocations: 38.56 kB / 368.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.114e-06/0.1133, allocations: 0 / 368.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004689/0.118, allocations: 2.085 MB / 370.4 MB, free: 2.203 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.1181, allocations: 59.84 kB / 370.5 MB, free: 2.133 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.1184, allocations: 256.9 kB / 370.7 MB, free: 1.867 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.241e-05/0.1184, allocations: 41.7 kB / 370.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1185, allocations: 152.8 kB / 370.9 MB, free: 1.664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.1187, allocations: 161.8 kB / 371.1 MB, free: 1.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.579e-05/0.1187, allocations: 53.69 kB / 371.1 MB, free: 1.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1189, allocations: 334.8 kB / 371.4 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003857/0.1193, allocations: 193 kB / 371.6 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/0.1197, allocations: 272.8 kB / 371.9 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000606/0.1203, allocations: 361.6 kB / 372.3 MB, free: 264 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1203, allocations: 3.938 kB / 372.3 MB, free: 260 kB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.1673/0.2877, allocations: 0.6126 MB / 372.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.2877, allocations: 7.625 kB / 372.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.2878, allocations: 2.766 kB / 372.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007587/0.2885, allocations: 339.5 kB / 373.2 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.2888, allocations: 69.17 kB / 373.3 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.2899, allocations: 1.365 MB / 374.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005105/0.2904, allocations: 102 kB / 374.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-05/0.2905, allocations: 25.92 kB / 374.8 MB, free: 17.93 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.0001985/0.2907, allocations: 168.3 kB / 374.9 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.617e-05/0.2908, allocations: 37.67 kB / 375 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.2909, allocations: 50.03 kB / 375 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.2909, allocations: 6.016 kB / 375 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.2909, allocations: 1.125 kB / 375 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.527e-06/0.291, allocations: 6.141 kB / 375 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002895/0.2939, allocations: 1.383 MB / 376.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.2939, allocations: 5.406 kB / 376.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.2942, allocations: 60.33 kB / 376.5 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000629/0.2948, allocations: 303.6 kB / 376.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.2948, allocations: 23.31 kB / 376.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009633/0.2958, allocations: 1.32 MB / 378.1 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2958, allocations: 2.656 kB / 378.1 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.2975, allocations: 0.921 MB / 379 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.2976, allocations: 159.7 kB / 379.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.357e-05/0.2977, allocations: 16.17 kB / 379.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003291/0.2981, allocations: 54.69 kB / 379.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.2983, allocations: 89.34 kB / 379.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.2983, allocations: 21 kB / 379.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001784/0.2985, allocations: 182.9 kB / 379.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2985, allocations: 2.297 kB / 379.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004486/0.299, allocations: 99.3 kB / 379.7 MB, free: 15.54 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.0008176/0.2998, allocations: 379.6 kB / 380 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009957/0.3008, allocations: 0.5023 MB / 380.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3008, allocations: 0 / 380.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005434/0.3013, allocations: 282.7 kB / 380.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005576/0.3019, allocations: 64.86 kB / 380.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.3043, allocations: 1.314 MB / 382.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.3046, allocations: 0.7941 MB / 383 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.3047, allocations: 33.11 kB / 383 MB, free: 13.54 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3047, allocations: 0 / 383 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01043/0.3151, allocations: 7.037 MB / 390 MB, free: 11.37 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/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