Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.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.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001472/0.001472, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001788/0.001788, allocations: 201.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.445/1.445, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 75.88 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.314, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001819/0.3159, allocations: 483 kB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003162/0.3191, allocations: 2.132 MB / 0.533 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.167e-05/0.3191, allocations: 0 / 0.533 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.563e-05/0.3192, allocations: 3.938 kB / 0.533 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.974e-05/0.3192, allocations: 4 kB / 0.533 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001417/0.3206, allocations: 399.7 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.191e-05/0.3207, allocations: 1.75 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.452e-05/0.3207, allocations: 5.75 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.699e-05/0.3208, allocations: 5.812 kB / 0.5334 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01575/0.3365, allocations: 3.362 MB / 0.5367 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.3365, allocations: 0 / 0.5367 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.446e-05/0.3366, allocations: 7.828 kB / 0.5367 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.194e-05/0.3366, allocations: 5.344 kB / 0.5367 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.147e-05/0.3367, allocations: 1.344 kB / 0.5367 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.3368, allocations: 3.438 kB / 0.5367 GB, free: 9.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3368, allocations: 1.219 kB / 0.5367 GB, free: 9.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3368, allocations: 0 / 0.5367 GB, free: 9.828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.3368, allocations: 0 / 0.5367 GB, free: 9.828 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002832/0.3371, allocations: 324 kB / 0.537 GB, free: 9.469 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.3372, allocations: 10.16 kB / 0.5371 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.234e-05/0.3372, allocations: 107 kB / 0.5372 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.3374, allocations: 89.7 kB / 0.5372 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.3376, allocations: 237 kB / 0.5375 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.3376, allocations: 150.9 kB / 0.5376 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.527e-05/0.3377, allocations: 158.5 kB / 0.5378 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.516e-05/0.3377, allocations: 106 kB / 0.5379 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/0.3378, allocations: 79.28 kB / 0.5379 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.125e-05/0.3378, allocations: 151.7 kB / 0.5381 GB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.808e-05/0.3379, allocations: 154.6 kB / 0.5382 GB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.279e-05/0.3379, allocations: 155.7 kB / 0.5384 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002542/0.3382, allocations: 447 kB / 0.5388 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.402e-05/0.3383, allocations: 178 kB / 0.539 GB, free: 7.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.379e-05/0.3383, allocations: 81.23 kB / 0.5391 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.3383, allocations: 75.28 kB / 0.5391 GB, free: 7.234 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.3384, allocations: 110.9 kB / 0.5392 GB, free: 7.117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.152e-06/0.3384, allocations: 0 / 0.5392 GB, free: 7.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.335e-05/0.3385, allocations: 26.89 kB / 0.5393 GB, free: 7.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.099e-05/0.3386, allocations: 179.1 kB / 0.5394 GB, free: 6.887 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.549e-05/0.3387, allocations: 99.98 kB / 0.5395 GB, free: 6.781 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.3387, allocations: 29.69 kB / 0.5396 GB, free: 6.746 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.144e-05/0.3387, allocations: 85.52 kB / 0.5396 GB, free: 6.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-06/0.3387, allocations: 0 / 0.5396 GB, free: 6.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.348e-05/0.3388, allocations: 12.16 kB / 0.5396 GB, free: 6.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.3389, allocations: 312 kB / 0.5399 GB, free: 6.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.17e-06/0.3389, allocations: 0 / 0.5399 GB, free: 6.332 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.463e-05/0.3389, allocations: 11.84 kB / 0.54 GB, free: 6.316 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.747e-05/0.3389, allocations: 79.28 kB / 0.54 GB, free: 6.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.181e-05/0.339, allocations: 80.28 kB / 0.5401 GB, free: 6.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.875e-05/0.339, allocations: 31.83 kB / 0.5401 GB, free: 6.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.3391, allocations: 84.72 kB / 0.5402 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.951e-05/0.3391, allocations: 88.61 kB / 0.5403 GB, free: 5.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.982e-05/0.3392, allocations: 151.6 kB / 0.5404 GB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.317e-05/0.3392, allocations: 79.22 kB / 0.5405 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.706e-05/0.3392, allocations: 151.8 kB / 0.5407 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.755e-05/0.3393, allocations: 81.25 kB / 0.5407 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.3394, allocations: 84.2 kB / 0.5408 GB, free: 5.426 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.3395, allocations: 270.6 kB / 0.5411 GB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.3395, allocations: 110.2 kB / 0.5412 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.3396, allocations: 113 kB / 0.5413 GB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.317e-05/0.3397, allocations: 181.7 kB / 0.5415 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.842e-05/0.3397, allocations: 180.3 kB / 0.5416 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.979e-05/0.3398, allocations: 181.4 kB / 0.5418 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.34, allocations: 407.6 kB / 0.5422 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.041e-05/0.34, allocations: 104.9 kB / 0.5423 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.549e-05/0.3401, allocations: 101.9 kB / 0.5424 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-05/0.3401, allocations: 181.5 kB / 0.5426 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.063e-05/0.3402, allocations: 185.2 kB / 0.5427 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.898e-05/0.3403, allocations: 181.3 kB / 0.5429 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-05/0.3403, allocations: 181.6 kB / 0.5431 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.3405, allocations: 311.9 kB / 0.5434 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.3405, allocations: 183.2 kB / 0.5436 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.666e-05/0.3406, allocations: 182.6 kB / 0.5437 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.927e-05/0.3407, allocations: 106.3 kB / 0.5438 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.9e-05/0.3407, allocations: 176.3 kB / 0.544 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.3408, allocations: 110.4 kB / 0.5441 GB, free: 1.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.597e-05/0.3408, allocations: 80.38 kB / 0.5442 GB, free: 1.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3408, allocations: 0 / 0.5442 GB, free: 1.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002474/0.3411, allocations: 2.625 kB / 0.5442 GB, free: 1.777 MB / 398.1 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 (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.0003531/0.3414, allocations: 0.8004 MB / 0.545 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 4.857e-05/0.3415, allocations: 4.781 kB / 0.545 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3415, allocations: 0 / 0.545 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.37e-06/0.3415, allocations: 13.3 kB / 0.545 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3418, allocations: 454.3 kB / 0.5454 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003184/0.3422, allocations: 180.7 kB / 0.5456 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.3424, allocations: 0.6729 MB / 0.5463 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.99e-05/0.3424, allocations: 1.375 kB / 0.5463 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.043e-05/0.3424, allocations: 11.38 kB / 0.5463 GB, free: 15.58 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3424, allocations: 0 / 0.5463 GB, free: 15.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01656/0.359, allocations: 1.012 MB / 0.5473 GB, free: 14.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/7.99, allocations: 6.125 kB / 0.5473 GB, free: 14.96 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches