Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001547/0.001546, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001915/0.001915, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2073/0.2073, allocations: 46.09 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 67.89 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2806, allocations: 62.43 MB / 0.5305 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.004196/0.2848, allocations: 3.157 MB / 0.5336 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.2868, allocations: 1.072 MB / 0.5346 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003911/0.2873, allocations: 10.81 kB / 0.5346 GB, free: 9.902 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.2875, allocations: 66.19 kB / 0.5347 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004051/0.288, allocations: 120.7 kB / 0.5348 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006826/0.2887, allocations: 175.1 kB / 0.535 GB, free: 9.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000562/0.2892, allocations: 469.4 kB / 0.5354 GB, free: 9.316 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.2895, allocations: 125.6 kB / 0.5355 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.2897, allocations: 166.1 kB / 0.5357 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002625/0.29, allocations: 183.7 kB / 0.5359 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.205e-05/0.29, allocations: 31.53 kB / 0.5359 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.2902, allocations: 55.56 kB / 0.5359 GB, free: 9.016 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.114e-05/0.2903, allocations: 75.28 kB / 0.536 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.2904, allocations: 199.5 kB / 0.5362 GB, free: 8.824 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004521/0.2909, allocations: 454.8 kB / 0.5366 GB, free: 8.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2909, allocations: 1.281 kB / 0.5366 GB, free: 8.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2909, allocations: 0 / 0.5366 GB, free: 8.508 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.2909, allocations: 4 kB / 0.5366 GB, free: 8.504 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001171/0.2921, allocations: 0.6893 MB / 0.5373 GB, free: 7.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.2922, allocations: 8.875 kB / 0.5373 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.704e-05/0.2922, allocations: 78.33 kB / 0.5374 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002858/0.2925, allocations: 68.62 kB / 0.5375 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004397/0.293, allocations: 298.2 kB / 0.5378 GB, free: 7.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.259e-05/0.293, allocations: 31.41 kB / 0.5378 GB, free: 7.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.388e-05/0.2931, allocations: 44.48 kB / 0.5378 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006364/0.2938, allocations: 358.6 kB / 0.5382 GB, free: 7.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.2938, allocations: 10.75 kB / 0.5382 GB, free: 7.223 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.2938, allocations: 19.45 kB / 0.5382 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.2939, allocations: 9.25 kB / 0.5382 GB, free: 7.207 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004927/0.2944, allocations: 245.3 kB / 0.5384 GB, free: 7.098 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.2964, allocations: 1.51 MB / 0.5399 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006813/0.297, allocations: 411.1 kB / 0.5403 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002194/0.2973, allocations: 141 kB / 0.5404 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.2973, allocations: 9.375 kB / 0.5404 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.2974, allocations: 41.95 kB / 0.5405 GB, free: 5.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 1.794e-06/0.2974, allocations: 0 / 0.5405 GB, free: 5.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=48): time 0.003079/0.3004, allocations: 1.972 MB / 0.5424 GB, free: 3.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/0.3005, allocations: 201.8 kB / 0.5426 GB, free: 3.328 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.3008, allocations: 252.3 kB / 0.5428 GB, free: 3.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.3008, allocations: 35.89 kB / 0.5429 GB, free: 3.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.301, allocations: 197.1 kB / 0.5431 GB, free: 2.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.3011, allocations: 178.4 kB / 0.5432 GB, free: 2.777 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.3012, allocations: 100.3 kB / 0.5433 GB, free: 2.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3014, allocations: 347.1 kB / 0.5437 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.3016, allocations: 121.5 kB / 0.5438 GB, free: 2.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000343/0.302, allocations: 301.8 kB / 0.5441 GB, free: 2.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006038/0.3026, allocations: 448.9 kB / 0.5445 GB, free: 1.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3026, allocations: 2.469 kB / 0.5445 GB, free: 1.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008114/0.3034, allocations: 0.4946 MB / 0.545 GB, free: 1.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.3035, allocations: 6.625 kB / 0.545 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.3035, allocations: 6.5 kB / 0.545 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.3035, allocations: 7.844 kB / 0.545 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004985/0.304, allocations: 138.2 kB / 0.5451 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.417e-05/0.304, allocations: 17.12 kB / 0.5452 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.3043, allocations: 34.02 kB / 0.5452 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.796e-05/0.3044, allocations: 23.47 kB / 0.5452 GB, free: 1.348 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002046/0.3046, allocations: 164.6 kB / 0.5454 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.3047, allocations: 38.94 kB / 0.5454 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002452/0.305, allocations: 130 kB / 0.5455 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.305, allocations: 6.031 kB / 0.5455 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.305, allocations: 6.5 kB / 0.5455 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.305, allocations: 9.141 kB / 0.5455 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.3069, allocations: 1.238 MB / 0.5468 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.318e-06/0.3069, allocations: 8.422 kB / 0.5468 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000559/0.3075, allocations: 123.4 kB / 0.5469 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.3075, allocations: 4 kB / 0.5469 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/0.3076, allocations: 15.98 kB / 0.5469 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.3076, allocations: 4.5 kB / 0.5469 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/0.3076, allocations: 15.94 kB / 0.5469 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.3087, allocations: 1.009 MB / 0.5479 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/0.3087, allocations: 112.7 kB / 0.548 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/0.3088, allocations: 19.98 kB / 0.548 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/0.3092, allocations: 12 kB / 0.548 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.619e-05/0.3093, allocations: 39.83 kB / 0.5481 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.3093, allocations: 16 kB / 0.5481 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.3094, allocations: 186 kB / 0.5483 GB, free: 14.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3095, allocations: 0 / 0.5483 GB, free: 14.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006262/0.3101, allocations: 100 kB / 0.5484 GB, free: 14.33 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (mass5.s,mass5.v,heatCapacitor.T,mass6.s,mass6.v,mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001174/0.3113, allocations: 1.558 MB / 0.5499 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006163/0.3119, allocations: 355.3 kB / 0.5502 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3119, allocations: 0 / 0.5502 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.3122, allocations: 167.7 kB / 0.5504 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009824/0.3132, allocations: 94.94 kB / 0.5505 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005191/0.3184, allocations: 4.641 MB / 0.555 GB, free: 7.168 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.3188, allocations: 0.8119 MB / 0.5558 GB, free: 6.328 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001939/0.319, allocations: 51.33 kB / 0.5559 GB, free: 6.277 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.3192, allocations: 131.3 kB / 0.556 GB, free: 6.148 MB / 414.1 MB Notification: Performance of SimCode: time 1.744e-06/0.3192, allocations: 0 / 0.556 GB, free: 6.148 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02583/0.345, allocations: 7.845 MB / 0.5636 GB, free: 14.42 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.47/8.815, allocations: 4.953 kB / 0.5636 GB, free: 14.41 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Translational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Translational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Translational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Translational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Translational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Translational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches