Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Translational.TestBraking.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Translational.TestBraking,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Translational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 243.4 MB, free: 8.113 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007732/0.0007731, allocations: 92.84 kB / 295.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.28/0.28, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002436/0.0002437, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2644, allocations: 62.96 MB / 0.5159 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.TestBraking): time 0.002208/0.2666, allocations: 2.605 MB / 0.5185 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.2679, allocations: 1.008 MB / 0.5195 GB, free: 34.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.268, allocations: 5.781 kB / 0.5195 GB, free: 34.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.2681, allocations: 41.59 kB / 0.5195 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001598/0.2683, allocations: 114.4 kB / 0.5196 GB, free: 34.42 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004063/0.2687, allocations: 132.5 kB / 0.5198 GB, free: 34.35 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.2691, allocations: 431.3 kB / 0.5202 GB, free: 34.13 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.2692, allocations: 98.91 kB / 0.5203 GB, free: 34.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.2694, allocations: 138.2 kB / 0.5204 GB, free: 34.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.2695, allocations: 160.8 kB / 0.5205 GB, free: 33.95 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/0.2696, allocations: 17.62 kB / 0.5206 GB, free: 33.95 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.2697, allocations: 40.98 kB / 0.5206 GB, free: 33.94 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.122e-05/0.2697, allocations: 60.72 kB / 0.5207 GB, free: 33.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.2699, allocations: 203.2 kB / 0.5209 GB, free: 33.78 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.2701, allocations: 322.8 kB / 0.5212 GB, free: 33.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2701, allocations: 0 / 0.5212 GB, free: 33.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2701, allocations: 0 / 0.5212 GB, free: 33.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.2701, allocations: 0 / 0.5212 GB, free: 33.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.0008524/0.271, allocations: 0.6161 MB / 0.5218 GB, free: 33.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.271, allocations: 10.53 kB / 0.5218 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.101e-05/0.2711, allocations: 75.97 kB / 0.5218 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002427/0.2714, allocations: 67.89 kB / 0.5219 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.2716, allocations: 285.6 kB / 0.5222 GB, free: 32.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.2716, allocations: 28.06 kB / 0.5222 GB, free: 32.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.2717, allocations: 39.69 kB / 0.5223 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004759/0.2722, allocations: 371.8 kB / 0.5226 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.2722, allocations: 3.031 kB / 0.5226 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.2722, allocations: 15.12 kB / 0.5226 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.2723, allocations: 8.594 kB / 0.5226 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004169/0.2727, allocations: 252.6 kB / 0.5229 GB, free: 32.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.2742, allocations: 1.521 MB / 0.5244 GB, free: 31.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005497/0.2748, allocations: 421.1 kB / 0.5248 GB, free: 31.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.2749, allocations: 132.2 kB / 0.5249 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.275, allocations: 9.531 kB / 0.5249 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/0.275, allocations: 45.09 kB / 0.5249 GB, free: 30.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.834e-06/0.275, allocations: 0 / 0.5249 GB, free: 30.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.002351/0.2774, allocations: 1.966 MB / 0.5269 GB, free: 29.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.2774, allocations: 186 kB / 0.527 GB, free: 29.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.2776, allocations: 247.2 kB / 0.5273 GB, free: 28.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.2776, allocations: 36.08 kB / 0.5273 GB, free: 28.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.017e-05/0.2777, allocations: 199.4 kB / 0.5275 GB, free: 28.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.839e-05/0.2778, allocations: 182.5 kB / 0.5277 GB, free: 28.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.863e-05/0.2778, allocations: 14.88 kB / 0.5277 GB, free: 28.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.089e-05/0.2779, allocations: 349 kB / 0.528 GB, free: 28.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.2781, allocations: 118 kB / 0.5281 GB, free: 28.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.2783, allocations: 292.8 kB / 0.5284 GB, free: 27.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004647/0.2788, allocations: 455.5 kB / 0.5288 GB, free: 27.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2788, allocations: 2.594 kB / 0.5288 GB, free: 27.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006316/0.2795, allocations: 496.2 kB / 0.5293 GB, free: 27.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2795, allocations: 12.53 kB / 0.5293 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2795, allocations: 5.5 kB / 0.5293 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.2795, allocations: 7.906 kB / 0.5293 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004127/0.2799, allocations: 144.6 kB / 0.5295 GB, free: 27.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.28, allocations: 16.06 kB / 0.5295 GB, free: 27.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.2802, allocations: 22.53 kB / 0.5295 GB, free: 27.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.2802, allocations: 30.31 kB / 0.5295 GB, free: 27.34 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.2803, allocations: 164.9 kB / 0.5297 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.2805, allocations: 38.38 kB / 0.5297 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.2807, allocations: 127.1 kB / 0.5299 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.2807, allocations: 7.969 kB / 0.5299 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.2807, allocations: 4 kB / 0.5299 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2807, allocations: 2.375 kB / 0.5299 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00144/0.2822, allocations: 1.258 MB / 0.5311 GB, free: 26.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.2822, allocations: 2.969 kB / 0.5311 GB, free: 26.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.2827, allocations: 120.2 kB / 0.5312 GB, free: 26.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/0.2827, allocations: 5.781 kB / 0.5312 GB, free: 26.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.783e-05/0.2827, allocations: 16.92 kB / 0.5312 GB, free: 26.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.2827, allocations: 5.906 kB / 0.5312 GB, free: 26.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.2827, allocations: 13.72 kB / 0.5313 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007522/0.2835, allocations: 1.001 MB / 0.5322 GB, free: 25.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.924e-05/0.2836, allocations: 110.6 kB / 0.5323 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.2836, allocations: 17.84 kB / 0.5324 GB, free: 25.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003391/0.284, allocations: 16.72 kB / 0.5324 GB, free: 25.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.284, allocations: 46.31 kB / 0.5324 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.2841, allocations: 14.28 kB / 0.5324 GB, free: 25.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001066/0.2842, allocations: 172.2 kB / 0.5326 GB, free: 25.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2842, allocations: 0 / 0.5326 GB, free: 25.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005633/0.2848, allocations: 99.78 kB / 0.5327 GB, free: 25.09 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008625/0.2856, allocations: 1.56 MB / 0.5342 GB, free: 23.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004845/0.2861, allocations: 341.6 kB / 0.5345 GB, free: 23.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2861, allocations: 0 / 0.5345 GB, free: 23.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002192/0.2864, allocations: 167.5 kB / 0.5347 GB, free: 23.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009841/0.2874, allocations: 94.12 kB / 0.5348 GB, free: 23.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.2907, allocations: 3.098 MB / 0.5378 GB, free: 21.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.2909, allocations: 0.8036 MB / 0.5386 GB, free: 20.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.2911, allocations: 134.5 kB / 0.5387 GB, free: 20.69 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2911, allocations: 4 kB / 0.5387 GB, free: 20.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.695/2.986, allocations: 5.467 MB / 0.5441 GB, free: 20.13 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Translational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Translational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Translational.TestBraking.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Translational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Translational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Translational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Translational_TestBraking.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Translational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Translational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches