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.0009013/0.0009015, allocations: 90.25 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008891/0.0008892, allocations: 203.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.7 MB / 246.8 MB, free: 11.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1983/0.1983, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002473, allocations: 8 kB / 419.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 63.56 MB / 483.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.002946/0.1188, allocations: 2.813 MB / 486 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.1202, allocations: 1.056 MB / 487 MB, free: 216 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.1203, allocations: 11.94 kB / 487 MB, free: 204 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.1205, allocations: 43.62 kB / 487.1 MB, free: 160 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.1207, allocations: 107.1 kB / 487.2 MB, free: 52 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.1211, allocations: 159.7 kB / 487.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003859/0.1215, allocations: 437.9 kB / 487.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.1217, allocations: 93.98 kB / 487.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.1218, allocations: 155.4 kB / 488 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.122, allocations: 167.2 kB / 488.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.1221, allocations: 23.94 kB / 488.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.1222, allocations: 39.98 kB / 488.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.16e-05/0.1222, allocations: 67.75 kB / 488.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.1224, allocations: 208.7 kB / 488.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.1228, allocations: 422.5 kB / 488.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1228, allocations: 3.938 kB / 488.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1228, allocations: 0 / 488.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.1228, allocations: 0 / 488.9 MB, free: 14.29 MB / 366.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.0009325/0.1237, allocations: 0.6318 MB / 489.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1238, allocations: 8.875 kB / 489.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.817e-05/0.1239, allocations: 78.72 kB / 489.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002636/0.1241, allocations: 68.34 kB / 489.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002902/0.1244, allocations: 290.6 kB / 490 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.1245, allocations: 29.38 kB / 490 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.337e-05/0.1245, allocations: 40.12 kB / 490.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000551/0.1251, allocations: 367.6 kB / 490.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.1251, allocations: 11.91 kB / 490.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.1252, allocations: 12 kB / 490.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1252, allocations: 8 kB / 490.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004519/0.1256, allocations: 255.7 kB / 490.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001986/0.1276, allocations: 1.529 MB / 492.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006654/0.1283, allocations: 423.5 kB / 492.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.1285, allocations: 141.4 kB / 492.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.1286, allocations: 11.94 kB / 492.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.1286, allocations: 43.03 kB / 492.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.533e-06/0.1286, allocations: 0 / 492.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003193/0.1318, allocations: 1.972 MB / 494.8 MB, free: 7.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.805e-05/0.1319, allocations: 199.8 kB / 495 MB, free: 7.602 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.1322, allocations: 255 kB / 495.3 MB, free: 7.344 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.1322, allocations: 33.7 kB / 495.3 MB, free: 7.305 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.1323, allocations: 200.4 kB / 495.5 MB, free: 7.105 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.1324, allocations: 177.4 kB / 495.7 MB, free: 6.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.223e-05/0.1325, allocations: 49.7 kB / 495.7 MB, free: 6.875 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1326, allocations: 350.8 kB / 496.1 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.1329, allocations: 117.3 kB / 496.2 MB, free: 6.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003672/0.1332, allocations: 303.9 kB / 496.5 MB, free: 6.035 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006388/0.1339, allocations: 469.8 kB / 496.9 MB, free: 5.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-06/0.1339, allocations: 0 / 496.9 MB, free: 5.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007834/0.1347, allocations: 496.5 kB / 497.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.1347, allocations: 16.31 kB / 497.4 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.1347, allocations: 8 kB / 497.4 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.1348, allocations: 12 kB / 497.4 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004465/0.1352, allocations: 139.8 kB / 497.6 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.1352, allocations: 15.88 kB / 497.6 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.1355, allocations: 27.89 kB / 497.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.1355, allocations: 24 kB / 497.6 MB, free: 4.77 MB / 366.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.0001557/0.1357, allocations: 165.7 kB / 497.8 MB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.1358, allocations: 35.62 kB / 497.8 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.1361, allocations: 131.3 kB / 498 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.1361, allocations: 4 kB / 498 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.1361, allocations: 7.938 kB / 498 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.1361, allocations: 3.984 kB / 498 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.1379, allocations: 1.257 MB / 499.2 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.1379, allocations: 7.984 kB / 499.2 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005004/0.1384, allocations: 119.8 kB / 499.4 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1385, allocations: 4.281 kB / 499.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/0.1385, allocations: 19.98 kB / 499.4 MB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.363e-06/0.1385, allocations: 8 kB / 499.4 MB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.1385, allocations: 4.312 kB / 499.4 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009996/0.1395, allocations: 1.013 MB / 0.4887 GB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.426e-05/0.1396, allocations: 112.6 kB / 0.4888 GB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.306e-05/0.1397, allocations: 15.98 kB / 0.4888 GB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003596/0.14, allocations: 19.94 kB / 0.4888 GB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.1401, allocations: 39.83 kB / 0.4889 GB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.1401, allocations: 20 kB / 0.4889 GB, free: 1.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001533/0.1403, allocations: 182 kB / 0.4891 GB, free: 1.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1403, allocations: 0 / 0.4891 GB, free: 1.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006029/0.1409, allocations: 96.19 kB / 0.4892 GB, free: 1.336 MB / 366.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.001422/0.1424, allocations: 1.562 MB / 0.4907 GB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007628/0.1431, allocations: 351 kB / 0.491 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1431, allocations: 0 / 0.491 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003698/0.1435, allocations: 174.1 kB / 0.4912 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.1446, allocations: 98.42 kB / 0.4913 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006076/0.1507, allocations: 5.01 MB / 0.4962 GB, free: 9.812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.1513, allocations: 0.8158 MB / 0.497 GB, free: 8.969 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.1515, allocations: 47.27 kB / 0.497 GB, free: 8.918 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.1517, allocations: 131.4 kB / 0.4971 GB, free: 8.789 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1517, allocations: 8 kB / 0.4971 GB, free: 8.781 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0298/0.1815, allocations: 7.149 MB / 0.5041 GB, free: 1.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002591/0.1818, allocations: 191.1 kB / 0.5043 GB, free: 1.516 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.149, allocations: 0 / 0.5043 GB, free: 1.516 MB / 382.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