Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 108.8 kB / 17.28 MB, free: 6.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 189.3 kB / 18.2 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 224 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 55.92 kB / 280.3 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08357/0.08473, allocations: 46.62 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003425/0.08818, allocations: 2.465 MB / 329.3 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008856/0.08909, allocations: 0.4959 MB / 329.8 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.615e-05/0.0892, allocations: 7.938 kB / 329.8 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002083/0.08942, allocations: 31.77 kB / 329.9 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.08956, allocations: 75.44 kB / 329.9 MB, free: 1.598 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.08995, allocations: 175.8 kB / 330.1 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.09039, allocations: 491.1 kB / 330.6 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.09054, allocations: 68.94 kB / 330.7 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/0.09075, allocations: 215.3 kB / 330.9 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002499/0.09101, allocations: 243.1 kB / 331.1 MB, free: 444 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.696e-05/0.09107, allocations: 40 kB / 331.2 MB, free: 404 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.09123, allocations: 79.95 kB / 331.2 MB, free: 324 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.836e-05/0.09134, allocations: 99.7 kB / 331.3 MB, free: 224 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.09152, allocations: 183.1 kB / 331.5 MB, free: 40 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004204/0.09194, allocations: 458.5 kB / 332 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.09196, allocations: 0 / 332 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.09197, allocations: 0 / 332 MB, free: 15.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.09198, allocations: 3.938 kB / 332 MB, free: 15.59 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001124/0.09311, allocations: 0.6588 MB / 332.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.09315, allocations: 8.031 kB / 332.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.684e-05/0.09323, allocations: 70.72 kB / 332.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.425e-05/0.09331, allocations: 36.47 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.09362, allocations: 284.6 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/0.09366, allocations: 24.94 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.09373, allocations: 32.28 kB / 333.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006904/0.09443, allocations: 373.2 kB / 333.4 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.09446, allocations: 3.938 kB / 333.4 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.972e-05/0.0945, allocations: 12 kB / 333.4 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.09452, allocations: 8 kB / 333.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007028/0.09522, allocations: 406 kB / 333.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.09702, allocations: 1.108 MB / 335 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004733/0.0975, allocations: 303.4 kB / 335.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/0.09783, allocations: 197.4 kB / 335.4 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.564e-05/0.09789, allocations: 7.938 kB / 335.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.09792, allocations: 38.56 kB / 335.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 1.663e-06/0.09793, allocations: 0 / 335.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004136/0.1021, allocations: 2.021 MB / 337.5 MB, free: 9.691 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.1021, allocations: 63.34 kB / 337.6 MB, free: 9.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.1023, allocations: 237 kB / 337.8 MB, free: 9.375 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.1024, allocations: 37.7 kB / 337.8 MB, free: 9.332 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.1025, allocations: 156.7 kB / 338 MB, free: 9.172 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.1026, allocations: 150 kB / 338.1 MB, free: 9.023 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.1028, allocations: 106.1 kB / 338.2 MB, free: 8.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1029, allocations: 338.8 kB / 338.6 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003596/0.1033, allocations: 209 kB / 338.8 MB, free: 8.371 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.1037, allocations: 288.8 kB / 339.1 MB, free: 8.062 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005658/0.1043, allocations: 385.7 kB / 339.4 MB, free: 7.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1043, allocations: 0 / 339.4 MB, free: 7.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001299/0.1056, allocations: 0.6924 MB / 340.1 MB, free: 6.953 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1056, allocations: 15.92 kB / 340.1 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1056, allocations: 3.938 kB / 340.2 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008159/0.1064, allocations: 497.5 kB / 340.6 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.1067, allocations: 67.91 kB / 340.7 MB, free: 6.375 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.1078, allocations: 1.39 MB / 342.1 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.1082, allocations: 64.08 kB / 342.2 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.1082, allocations: 27.98 kB / 342.2 MB, free: 4.844 MB / 286.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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001816/0.1084, allocations: 173.2 kB / 342.4 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.289e-05/0.1085, allocations: 31.62 kB / 342.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.1086, allocations: 51.3 kB / 342.4 MB, free: 4.586 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1086, allocations: 4 kB / 342.4 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1086, allocations: 0 / 342.4 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1086, allocations: 3.984 kB / 342.4 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.111, allocations: 1.345 MB / 343.8 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1111, allocations: 0 / 343.8 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002484/0.1113, allocations: 63.84 kB / 343.8 MB, free: 3.094 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006442/0.112, allocations: 457.5 kB / 344.3 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/0.112, allocations: 19.97 kB / 344.3 MB, free: 2.621 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.1131, allocations: 1.339 MB / 345.7 MB, free: 1.23 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.1131, allocations: 8 kB / 345.7 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.1147, allocations: 0.9394 MB / 346.6 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.1148, allocations: 152.7 kB / 346.7 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.104e-05/0.1149, allocations: 23.94 kB / 346.8 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.1152, allocations: 39.89 kB / 346.8 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.1154, allocations: 83.86 kB / 346.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.1154, allocations: 19.98 kB / 346.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.1155, allocations: 180.4 kB / 347.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1156, allocations: 0 / 347.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003989/0.116, allocations: 104 kB / 347.2 MB, free: 15.63 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001951/0.1179, allocations: 1.511 MB / 348.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009969/0.1189, allocations: 0.526 MB / 349.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1189, allocations: 0 / 349.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005449/0.1195, allocations: 291.6 kB / 349.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.12, allocations: 57.11 kB / 349.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006145/0.1261, allocations: 4.247 MB / 353.8 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.1264, allocations: 0.78 MB / 354.6 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.1266, allocations: 34.97 kB / 354.6 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.1267, allocations: 95.34 kB / 354.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of SimCode: time 1.813e-06/0.1267, allocations: 0 / 354.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02518/0.1519, allocations: 11.4 MB / 366.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.1521, allocations: 226.1 kB / 366.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/2.306, allocations: 4 kB / 366.3 MB, free: 12.19 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches