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.001226/0.001226, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001346, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2082/0.2082, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 77.56 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1144, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001791/0.1162, allocations: 486.7 kB / 480.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.1193, allocations: 2.135 MB / 482.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.864e-05/0.1194, allocations: 0 / 482.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.1194, allocations: 0 / 482.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.962e-05/0.1194, allocations: 7.938 kB / 482.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1207, allocations: 390.8 kB / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.991e-05/0.1208, allocations: 4 kB / 483.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.841e-05/0.1208, allocations: 3.984 kB / 483.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.994e-05/0.1208, allocations: 8 kB / 483.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01508/0.1359, allocations: 3.337 MB / 486.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.1359, allocations: 4 kB / 486.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.278e-05/0.136, allocations: 8 kB / 486.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-06/0.1361, allocations: 4 kB / 486.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.558e-05/0.1361, allocations: 0 / 486.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.1362, allocations: 7.984 kB / 486.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.1362, allocations: 0 / 486.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1362, allocations: 0 / 486.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.1363, allocations: 0 / 486.5 MB, free: 15.4 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000337/0.1366, allocations: 323.5 kB / 486.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1367, allocations: 8.031 kB / 486.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.022e-05/0.1367, allocations: 106 kB / 486.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002269/0.137, allocations: 92.2 kB / 487 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.1371, allocations: 235.7 kB / 487.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-05/0.1372, allocations: 154.9 kB / 487.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.565e-05/0.1372, allocations: 154.5 kB / 487.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.707e-05/0.1373, allocations: 104.9 kB / 487.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.1373, allocations: 75.28 kB / 487.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.931e-05/0.1374, allocations: 154.6 kB / 487.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.816e-05/0.1375, allocations: 154.6 kB / 488 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.63e-05/0.1375, allocations: 154.5 kB / 488.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002804/0.1378, allocations: 445.9 kB / 488.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.595e-05/0.1379, allocations: 177 kB / 488.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.438e-05/0.1379, allocations: 80.14 kB / 488.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.865e-05/0.138, allocations: 79.28 kB / 488.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.128e-05/0.138, allocations: 105.8 kB / 489 MB, free: 12.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.138, allocations: 0 / 489 MB, free: 12.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 8.247e-05/0.1381, allocations: 29.69 kB / 489.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/0.1382, allocations: 190.1 kB / 489.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.1383, allocations: 93.86 kB / 489.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.1383, allocations: 33.58 kB / 489.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/0.1384, allocations: 80.14 kB / 489.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-06/0.1384, allocations: 0 / 489.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.1384, allocations: 13.72 kB / 489.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.1385, allocations: 310.8 kB / 489.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.911e-06/0.1386, allocations: 4.125 kB / 489.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.057e-05/0.1386, allocations: 17.72 kB / 489.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.981e-05/0.1386, allocations: 75.28 kB / 489.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.713e-05/0.1387, allocations: 75.28 kB / 489.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.293e-05/0.1387, allocations: 41.62 kB / 490 MB, free: 11.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.73e-05/0.1388, allocations: 81.78 kB / 490.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/0.1388, allocations: 79.22 kB / 490.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.671e-05/0.1389, allocations: 154.6 kB / 490.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.98e-05/0.1389, allocations: 83.22 kB / 490.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.827e-05/0.139, allocations: 154.6 kB / 490.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.703e-05/0.1391, allocations: 79.28 kB / 490.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.1391, allocations: 79.22 kB / 490.7 MB, free: 10.95 MB / 366.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.0001243/0.1392, allocations: 272.3 kB / 490.9 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/0.1393, allocations: 101 kB / 491 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.1393, allocations: 112 kB / 491.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.897e-05/0.1394, allocations: 176.3 kB / 491.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.778e-05/0.1395, allocations: 180.3 kB / 491.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.141e-05/0.1395, allocations: 184.2 kB / 491.7 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.1398, allocations: 405.2 kB / 492.1 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.694e-05/0.1398, allocations: 104.9 kB / 492.2 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.513e-05/0.1399, allocations: 105 kB / 492.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.444e-05/0.1399, allocations: 184.5 kB / 492.5 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-05/0.14, allocations: 184.2 kB / 492.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.086e-05/0.1401, allocations: 180.3 kB / 492.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.227e-05/0.1401, allocations: 184.2 kB / 493 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.1403, allocations: 307.8 kB / 493.3 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.311e-05/0.1404, allocations: 190 kB / 493.5 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.193e-05/0.1404, allocations: 176.3 kB / 493.7 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-05/0.1405, allocations: 112.9 kB / 493.8 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/0.1406, allocations: 184.3 kB / 493.9 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.1407, allocations: 101 kB / 494 MB, free: 7.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.512e-05/0.1407, allocations: 79.22 kB / 494.1 MB, free: 7.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1407, allocations: 0 / 494.1 MB, free: 7.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002548/0.141, allocations: 4 kB / 494.1 MB, free: 7.273 MB / 366.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.0003477/0.1413, allocations: 0.8048 MB / 494.9 MB, free: 6.438 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.847e-05/0.1414, allocations: 4 kB / 494.9 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1414, allocations: 0 / 494.9 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.632e-06/0.1414, allocations: 3.938 kB / 494.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.1417, allocations: 459.7 kB / 495.4 MB, free: 5.977 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003656/0.1421, allocations: 181.6 kB / 495.6 MB, free: 5.762 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.1423, allocations: 0.6729 MB / 496.2 MB, free: 5.062 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.789e-05/0.1424, allocations: 4 kB / 496.2 MB, free: 5.059 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.1424, allocations: 7.438 kB / 496.2 MB, free: 5.055 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1424, allocations: 0 / 496.2 MB, free: 5.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2436/0.386, allocations: 0.9906 MB / 497.2 MB, free: 4.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.584/9.97, allocations: 8.109 kB / 497.2 MB, free: 4.125 MB / 366.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