Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.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.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009092/0.0009092, allocations: 195.8 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.268/1.268, allocations: 226.5 MB / 243.4 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008082/0.0008085, allocations: 99.83 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2874/0.2874, allocations: 44.82 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002474/0.0002475, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2584, allocations: 62.96 MB / 0.516 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0004905/0.2589, allocations: 217.9 kB / 0.5162 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.2611, allocations: 2.013 MB / 0.5181 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.116e-05/0.2611, allocations: 0 / 0.5181 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.266e-06/0.2612, allocations: 0 / 0.5181 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.073e-05/0.2612, allocations: 0 / 0.5181 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009454/0.2621, allocations: 297 kB / 0.5184 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.244e-05/0.2622, allocations: 7.938 kB / 0.5184 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.994e-05/0.2622, allocations: 2.906 kB / 0.5184 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.245e-05/0.2622, allocations: 3.469 kB / 0.5184 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01296/0.2752, allocations: 2.762 MB / 0.5211 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.2752, allocations: 0 / 0.5211 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.064e-05/0.2753, allocations: 9.094 kB / 0.5211 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.267e-06/0.2753, allocations: 3.938 kB / 0.5211 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.2754, allocations: 29.17 kB / 0.5212 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.767e-05/0.2754, allocations: 2.562 kB / 0.5212 GB, free: 34.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2755, allocations: 2.656 kB / 0.5212 GB, free: 34.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2755, allocations: 0 / 0.5212 GB, free: 34.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.2755, allocations: 0 / 0.5212 GB, free: 34.5 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000171/0.2756, allocations: 317.4 kB / 0.5215 GB, free: 34.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.2757, allocations: 8.219 kB / 0.5215 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.771e-05/0.2757, allocations: 113.1 kB / 0.5216 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.2759, allocations: 85.67 kB / 0.5217 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.95e-05/0.276, allocations: 235.7 kB / 0.5219 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.276, allocations: 158.8 kB / 0.522 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.276, allocations: 154.5 kB / 0.5222 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.789e-05/0.2761, allocations: 105 kB / 0.5223 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.2761, allocations: 79.28 kB / 0.5224 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.2761, allocations: 153.6 kB / 0.5225 GB, free: 33.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.2762, allocations: 154.5 kB / 0.5227 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.187e-05/0.2762, allocations: 150.6 kB / 0.5228 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001673/0.2764, allocations: 449.2 kB / 0.5232 GB, free: 32.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.244e-05/0.2764, allocations: 176 kB / 0.5234 GB, free: 32.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.536e-05/0.2764, allocations: 80.14 kB / 0.5235 GB, free: 32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.2764, allocations: 75.28 kB / 0.5235 GB, free: 31.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.2765, allocations: 105.8 kB / 0.5236 GB, free: 31.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.2765, allocations: 2.844 kB / 0.5236 GB, free: 31.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.181e-05/0.2765, allocations: 33.64 kB / 0.5237 GB, free: 31.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.2766, allocations: 185.5 kB / 0.5239 GB, free: 31.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.205e-05/0.2767, allocations: 92.05 kB / 0.5239 GB, free: 31.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.903e-06/0.2767, allocations: 25.7 kB / 0.524 GB, free: 31.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.421e-05/0.2767, allocations: 83.27 kB / 0.524 GB, free: 31.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-06/0.2767, allocations: 0 / 0.524 GB, free: 31.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.31e-07/0.2767, allocations: 0 / 0.524 GB, free: 31.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.093e-05/0.2767, allocations: 315 kB / 0.5243 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.905e-06/0.2768, allocations: 0 / 0.5243 GB, free: 31.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.037e-05/0.2768, allocations: 12.47 kB / 0.5244 GB, free: 31.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.138e-05/0.2768, allocations: 79.22 kB / 0.5244 GB, free: 30.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.148e-06/0.2768, allocations: 75.28 kB / 0.5245 GB, free: 30.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.895e-05/0.2769, allocations: 40.48 kB / 0.5245 GB, free: 30.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.2769, allocations: 81.94 kB / 0.5246 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.2769, allocations: 83.36 kB / 0.5247 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.898e-05/0.2769, allocations: 154.6 kB / 0.5249 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.194e-05/0.277, allocations: 82.19 kB / 0.5249 GB, free: 30.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.277, allocations: 150.6 kB / 0.5251 GB, free: 30.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.79e-05/0.2771, allocations: 79.22 kB / 0.5252 GB, free: 30.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-06/0.2771, allocations: 78.16 kB / 0.5252 GB, free: 30.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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 5.899e-05/0.2771, allocations: 271.9 kB / 0.5255 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.2772, allocations: 107.8 kB / 0.5256 GB, free: 29.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.888e-05/0.2772, allocations: 104.1 kB / 0.5257 GB, free: 29.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/0.2772, allocations: 179.1 kB / 0.5259 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.272e-05/0.2773, allocations: 183.5 kB / 0.526 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-05/0.2773, allocations: 180.3 kB / 0.5262 GB, free: 29.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.2774, allocations: 411.4 kB / 0.5266 GB, free: 28.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.2774, allocations: 101 kB / 0.5267 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.327e-05/0.2774, allocations: 103.9 kB / 0.5268 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.151e-05/0.2775, allocations: 184.1 kB / 0.527 GB, free: 28.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.2775, allocations: 176.3 kB / 0.5271 GB, free: 28.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.391e-05/0.2775, allocations: 194.4 kB / 0.5273 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.112e-05/0.2776, allocations: 188.2 kB / 0.5275 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.074e-05/0.2776, allocations: 302.6 kB / 0.5278 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.94e-05/0.2777, allocations: 188.2 kB / 0.528 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.2777, allocations: 184.2 kB / 0.5281 GB, free: 26.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.901e-05/0.2778, allocations: 103.9 kB / 0.5282 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.2778, allocations: 179.6 kB / 0.5284 GB, free: 26.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.2778, allocations: 108.3 kB / 0.5285 GB, free: 26.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.549e-05/0.2778, allocations: 75.28 kB / 0.5286 GB, free: 26.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2778, allocations: 0 / 0.5286 GB, free: 26.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002591/0.2781, allocations: 2.875 kB / 0.5286 GB, free: 26.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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.0001937/0.2783, allocations: 0.8026 MB / 0.5294 GB, free: 25.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 3.695e-05/0.2784, allocations: 3.938 kB / 0.5294 GB, free: 25.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2784, allocations: 2.906 kB / 0.5294 GB, free: 25.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.234e-06/0.2784, allocations: 4 kB / 0.5294 GB, free: 25.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.2786, allocations: 0.5253 MB / 0.5299 GB, free: 25.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000272/0.2789, allocations: 192.4 kB / 0.5301 GB, free: 24.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.578e-05/0.279, allocations: 0.6755 MB / 0.5307 GB, free: 24.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.056e-05/0.279, allocations: 7.438 kB / 0.5307 GB, free: 24.24 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.279, allocations: 0 / 0.5307 GB, free: 24.24 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.331/2.61, allocations: 498.4 kB / 0.5312 GB, free: 24.21 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches