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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001192/0.001192, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 63.3 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1115, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004867/0.1164, allocations: 2.566 MB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.1178, allocations: 0.5771 MB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.1182, allocations: 8 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003719/0.1186, allocations: 71.42 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004667/0.1191, allocations: 127 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.1195, allocations: 159.8 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007615/0.1203, allocations: 0.5147 MB / 361.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.1206, allocations: 72.69 kB / 361.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003783/0.121, allocations: 223.4 kB / 361.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004763/0.1215, allocations: 247.2 kB / 362.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.1216, allocations: 47.94 kB / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002463/0.1218, allocations: 95.97 kB / 362.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.1221, allocations: 115.6 kB / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002688/0.1223, allocations: 195.1 kB / 362.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007462/0.1231, allocations: 0.4948 MB / 363.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1231, allocations: 0 / 363.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1231, allocations: 0 / 363.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.748e-05/0.1231, allocations: 0 / 363.1 MB, free: 8.488 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.001665/0.1248, allocations: 0.7055 MB / 363.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.1249, allocations: 8.031 kB / 363.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/0.125, allocations: 74.72 kB / 363.9 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.1251, allocations: 36.47 kB / 363.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.1256, allocations: 291.7 kB / 364.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/0.1257, allocations: 25.03 kB / 364.2 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.753e-05/0.1258, allocations: 32.28 kB / 364.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000786/0.1265, allocations: 378.4 kB / 364.6 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.24e-05/0.1267, allocations: 3.938 kB / 364.6 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.1267, allocations: 16 kB / 364.6 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-06/0.1267, allocations: 4 kB / 364.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008776/0.1276, allocations: 394.4 kB / 365 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.13, allocations: 1.131 MB / 366.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007105/0.1308, allocations: 336.2 kB / 366.5 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004867/0.1313, allocations: 188.8 kB / 366.7 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.688e-05/0.1313, allocations: 4 kB / 366.7 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.1314, allocations: 46.48 kB / 366.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 3.828e-06/0.1314, allocations: 0 / 366.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005227/0.1366, allocations: 1.995 MB / 368.7 MB, free: 2.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.1367, allocations: 55.84 kB / 368.8 MB, free: 2.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.137, allocations: 256.9 kB / 369 MB, free: 2.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.1371, allocations: 45.69 kB / 369 MB, free: 2.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1372, allocations: 152.8 kB / 369.2 MB, free: 1.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.1374, allocations: 169.7 kB / 369.4 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.1375, allocations: 94.16 kB / 369.5 MB, free: 1.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1377, allocations: 346.7 kB / 369.8 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/0.1381, allocations: 193 kB / 370 MB, free: 1.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005786/0.1387, allocations: 268.8 kB / 370.2 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006822/0.1394, allocations: 361.6 kB / 370.6 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1394, allocations: 0 / 370.6 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.2068/0.3462, allocations: 0.6085 MB / 371.2 MB, free: 19.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.3463, allocations: 5.844 kB / 371.2 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.3463, allocations: 6.047 kB / 371.2 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.3474, allocations: 345 kB / 371.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004074/0.3478, allocations: 69.42 kB / 371.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/0.3491, allocations: 1.359 MB / 373 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005789/0.3497, allocations: 68.88 kB / 373 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.769e-05/0.3497, allocations: 18.69 kB / 373.1 MB, free: 18.8 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.00023/0.35, allocations: 170.9 kB / 373.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.3501, allocations: 44.27 kB / 373.3 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.3502, allocations: 51.81 kB / 373.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.3502, allocations: 5.406 kB / 373.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3503, allocations: 0 / 373.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.3503, allocations: 3.609 kB / 373.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003252/0.3535, allocations: 1.347 MB / 374.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.3536, allocations: 1.344 kB / 374.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/0.3539, allocations: 59.47 kB / 374.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007422/0.3546, allocations: 306 kB / 375 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.3547, allocations: 19.17 kB / 375.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/0.3558, allocations: 1.314 MB / 376.4 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.3558, allocations: 7.766 kB / 376.4 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.3576, allocations: 0.9125 MB / 377.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/0.3578, allocations: 159.2 kB / 377.4 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.061e-05/0.3579, allocations: 16.84 kB / 377.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/0.3583, allocations: 42.97 kB / 377.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.3585, allocations: 85.86 kB / 377.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.465e-05/0.3585, allocations: 25.3 kB / 377.6 MB, free: 16.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.3588, allocations: 183.2 kB / 377.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3588, allocations: 0 / 377.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005458/0.3593, allocations: 102.8 kB / 377.9 MB, free: 16.2 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.002772/0.3621, allocations: 1.725 MB / 379.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.3634, allocations: 0.5134 MB / 380.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3634, allocations: 1.5 kB / 380.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007201/0.3642, allocations: 282.3 kB / 380.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005944/0.3648, allocations: 70.59 kB / 380.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00758/0.3724, allocations: 4.066 MB / 384.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.3727, allocations: 0.7894 MB / 385.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000196/0.3729, allocations: 32.52 kB / 385.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001869/0.3731, allocations: 106.6 kB / 385.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3732, allocations: 4 kB / 385.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04363/0.4168, allocations: 11.66 MB / 397.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.43, allocations: 5.266 kB / 397.1 MB, free: 6.785 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv","/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