Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001732/0.001732, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001986/0.001986, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.502/1.502, allocations: 227.7 MB / 247.7 MB, free: 10.33 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002016, allocations: 65.64 kB / 307.9 MB, free: 480 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1273, allocations: 50.53 MB / 358.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00476/0.1321, allocations: 2.578 MB / 361 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1334, allocations: 0.5849 MB / 361.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.1336, allocations: 4 kB / 361.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003398/0.1339, allocations: 67.42 kB / 361.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000343/0.1343, allocations: 135 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.1347, allocations: 163.8 kB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005943/0.1353, allocations: 0.5069 MB / 362.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.1355, allocations: 72.69 kB / 362.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002652/0.1358, allocations: 227.3 kB / 362.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003447/0.1361, allocations: 247.2 kB / 363 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.204e-05/0.1362, allocations: 40 kB / 363 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.1364, allocations: 95.98 kB / 363.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.1366, allocations: 115.6 kB / 363.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000233/0.1369, allocations: 199 kB / 363.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005781/0.1375, allocations: 0.4909 MB / 363.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1375, allocations: 0 / 363.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1375, allocations: 4 kB / 363.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1375, allocations: 0 / 363.9 MB, free: 8.395 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.001453/0.139, allocations: 0.7056 MB / 364.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.139, allocations: 8.031 kB / 364.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.1391, allocations: 40.47 kB / 364.7 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.1396, allocations: 295.5 kB / 365 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/0.1396, allocations: 25.03 kB / 365 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.293e-05/0.1397, allocations: 32.28 kB / 365 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000764/0.1404, allocations: 374.5 kB / 365.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.1405, allocations: 192 / 365.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.476e-05/0.1405, allocations: 19.94 kB / 365.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.1406, allocations: 12 kB / 365.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00083/0.1414, allocations: 390.3 kB / 365.8 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.1436, allocations: 1.131 MB / 366.9 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006461/0.1442, allocations: 332.3 kB / 367.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000408/0.1446, allocations: 188.8 kB / 367.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.265e-05/0.1447, allocations: 4 kB / 367.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.1447, allocations: 34.56 kB / 367.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.485e-06/0.1447, allocations: 0 / 367.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.00506/0.1498, allocations: 1.999 MB / 369.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.1499, allocations: 59.84 kB / 369.5 MB, free: 2.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.1502, allocations: 256.9 kB / 369.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.1503, allocations: 41.69 kB / 369.8 MB, free: 2.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.1504, allocations: 152.8 kB / 370 MB, free: 1.973 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.1506, allocations: 173.7 kB / 370.1 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.1508, allocations: 94.14 kB / 370.2 MB, free: 1.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.151, allocations: 342.8 kB / 370.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/0.1514, allocations: 189 kB / 370.8 MB, free: 1.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004697/0.1519, allocations: 280.8 kB / 371 MB, free: 0.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007058/0.1526, allocations: 353.6 kB / 371.4 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1526, allocations: 4 kB / 371.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.1672/0.3198, allocations: 0.6052 MB / 372 MB, free: 19.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.596e-05/0.3199, allocations: 5.953 kB / 372 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.3199, allocations: 2.5 kB / 372 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008975/0.3208, allocations: 341.3 kB / 372.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003365/0.3211, allocations: 74.8 kB / 372.4 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.3223, allocations: 1.361 MB / 373.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005104/0.3228, allocations: 72.36 kB / 373.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.3228, allocations: 19.45 kB / 373.9 MB, free: 18.72 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.0002173/0.3231, allocations: 165.4 kB / 374 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.147e-05/0.3232, allocations: 41.64 kB / 374.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.3233, allocations: 49.69 kB / 374.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.3233, allocations: 9.719 kB / 374.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.3233, allocations: 0 / 374.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.3233, allocations: 4.344 kB / 374.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/0.3261, allocations: 1.339 MB / 375.5 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.3262, allocations: 1 kB / 375.5 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000282/0.3264, allocations: 66.38 kB / 375.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006696/0.3271, allocations: 305.8 kB / 375.8 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.3272, allocations: 19.48 kB / 375.8 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009971/0.3282, allocations: 1.321 MB / 377.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.3282, allocations: 1.375 kB / 377.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.3299, allocations: 0.9144 MB / 378.1 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.3301, allocations: 154.6 kB / 378.2 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.29e-05/0.3302, allocations: 20.91 kB / 378.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003223/0.3305, allocations: 43.33 kB / 378.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.3307, allocations: 89.89 kB / 378.4 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/0.3308, allocations: 21.11 kB / 378.4 MB, free: 16.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001754/0.3309, allocations: 183.4 kB / 378.6 MB, free: 16.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.331, allocations: 3.719 kB / 378.6 MB, free: 16.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004623/0.3314, allocations: 94.89 kB / 378.7 MB, free: 16.1 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.001271/0.3327, allocations: 390.9 kB / 379.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.3339, allocations: 0.5177 MB / 379.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3339, allocations: 0 / 379.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005787/0.3345, allocations: 278.5 kB / 379.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005576/0.3351, allocations: 63.48 kB / 379.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.3375, allocations: 1.071 MB / 381 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.3377, allocations: 0.7934 MB / 381.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.3379, allocations: 43.86 kB / 381.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3379, allocations: 0 / 381.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Templates: time 0.01134/0.3492, allocations: 7.094 MB / 388.9 MB, free: 12.16 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches