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.001033/0.001033, allocations: 115.4 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 67.81 kB / 306.6 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08644/0.08777, allocations: 50.53 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003354/0.09116, allocations: 2.616 MB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00085/0.09202, allocations: 0.5733 MB / 360.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.949e-05/0.09213, allocations: 4 kB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.09238, allocations: 59.61 kB / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.09264, allocations: 115.4 kB / 360.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002356/0.09288, allocations: 139.8 kB / 360.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004249/0.09331, allocations: 0.5147 MB / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.09347, allocations: 68.7 kB / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.09368, allocations: 235.3 kB / 361.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.09393, allocations: 251.1 kB / 361.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.613e-05/0.094, allocations: 40 kB / 361.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001385/0.09414, allocations: 95.97 kB / 361.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.09427, allocations: 119.6 kB / 361.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.09443, allocations: 187.1 kB / 362.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.09485, allocations: 0.4948 MB / 362.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.09486, allocations: 7.938 kB / 362.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09487, allocations: 0 / 362.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.138e-06/0.09488, allocations: 3.984 kB / 362.6 MB, free: 8.586 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.001138/0.09602, allocations: 0.7094 MB / 363.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.09606, allocations: 8.031 kB / 363.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.535e-05/0.09614, allocations: 66.72 kB / 363.4 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.863e-05/0.09624, allocations: 36.47 kB / 363.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.09654, allocations: 291.7 kB / 363.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.09657, allocations: 21.03 kB / 363.7 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.324e-05/0.09664, allocations: 36.28 kB / 363.7 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.0973, allocations: 382.5 kB / 364.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.09733, allocations: 3.938 kB / 364.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.09737, allocations: 12 kB / 364.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.09738, allocations: 4 kB / 364.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007163/0.09811, allocations: 390.4 kB / 364.5 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.09986, allocations: 1.131 MB / 365.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005321/0.1004, allocations: 334.5 kB / 366 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003307/0.1007, allocations: 188.8 kB / 366.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.1008, allocations: 4 kB / 366.2 MB, free: 4.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.1008, allocations: 38.56 kB / 366.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.483e-06/0.1008, allocations: 4 kB / 366.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.004246/0.1051, allocations: 2.003 MB / 368.2 MB, free: 2.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.1051, allocations: 55.84 kB / 368.3 MB, free: 2.555 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/0.1054, allocations: 252.9 kB / 368.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.92e-05/0.1054, allocations: 45.7 kB / 368.6 MB, free: 2.242 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.514e-05/0.1055, allocations: 152.8 kB / 368.7 MB, free: 2.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.1057, allocations: 169.7 kB / 368.9 MB, free: 1.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.1058, allocations: 98.14 kB / 369 MB, free: 1.816 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.1059, allocations: 338.8 kB / 369.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003497/0.1063, allocations: 197 kB / 369.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003884/0.1067, allocations: 268.8 kB / 369.7 MB, free: 1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005544/0.1072, allocations: 353.6 kB / 370.1 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1072, allocations: 4 kB / 370.1 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001059/0.1083, allocations: 0.6066 MB / 370.7 MB, free: 8 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.1083, allocations: 8 kB / 370.7 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1642/0.2726, allocations: 1.516 kB / 370.7 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009196/0.2735, allocations: 348.2 kB / 371.1 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.2738, allocations: 69.97 kB / 371.1 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.2749, allocations: 1.362 MB / 372.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004466/0.2754, allocations: 74.77 kB / 372.6 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.2754, allocations: 19.19 kB / 372.6 MB, free: 19.07 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.00018/0.2756, allocations: 166.2 kB / 372.7 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.238e-05/0.2757, allocations: 34.09 kB / 372.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.2758, allocations: 56.94 kB / 372.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.2758, allocations: 4.406 kB / 372.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2758, allocations: 2 kB / 372.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.2759, allocations: 1.734 kB / 372.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/0.2785, allocations: 1.346 MB / 374.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.2785, allocations: 5.688 kB / 374.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.2788, allocations: 61.86 kB / 374.2 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000563/0.2794, allocations: 303.7 kB / 374.5 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.2794, allocations: 20.59 kB / 374.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009646/0.2804, allocations: 1.315 MB / 375.9 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2804, allocations: 1.25 kB / 375.9 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.282, allocations: 0.9199 MB / 376.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.2822, allocations: 159.2 kB / 377 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.455e-05/0.2823, allocations: 19.8 kB / 377 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.2826, allocations: 35.05 kB / 377 MB, free: 16.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.2828, allocations: 97.64 kB / 377.1 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.2829, allocations: 21.03 kB / 377.1 MB, free: 16.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001587/0.283, allocations: 188 kB / 377.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.283, allocations: 4 kB / 377.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004059/0.2835, allocations: 95.17 kB / 377.4 MB, free: 16.45 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.00239/0.2858, allocations: 1.71 MB / 379.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.2869, allocations: 0.52 MB / 379.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2869, allocations: 0 / 379.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005565/0.2875, allocations: 280.9 kB / 379.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005061/0.288, allocations: 69.02 kB / 380 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005831/0.2939, allocations: 4.203 MB / 384.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.2941, allocations: 0.7898 MB / 385 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.2942, allocations: 36.73 kB / 385 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.2944, allocations: 100.9 kB / 385.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2944, allocations: 0 / 385.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.3224, allocations: 11.61 MB / 396.7 MB, free: 6.969 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/0.3225, allocations: 277.2 kB / 397 MB, free: 6.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.159/2.482, allocations: 0 / 397 MB, free: 6.609 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.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