Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001244/0.001244, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2373/0.2373, allocations: 46.11 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 74.7 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1448, allocations: 62.44 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00246/0.1473, allocations: 479.7 kB / 480.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006951/0.148, allocations: 253.9 kB / 480.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.612e-05/0.1481, allocations: 4 kB / 480.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.589e-05/0.1481, allocations: 0 / 480.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.452e-06/0.1481, allocations: 0 / 480.8 MB, free: 4.492 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.1485, allocations: 51.81 kB / 480.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.772e-05/0.1486, allocations: 7.938 kB / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.67e-05/0.1486, allocations: 0 / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.691e-05/0.1487, allocations: 0 / 480.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.891e-05/0.1487, allocations: 4 kB / 480.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.1487, allocations: 0 / 480.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.1489, allocations: 71.83 kB / 481 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.237e-05/0.1489, allocations: 3.984 kB / 481 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.696e-05/0.1489, allocations: 4 kB / 481 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.1491, allocations: 47.94 kB / 481 MB, free: 4.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1491, allocations: 4 kB / 481 MB, free: 4.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1491, allocations: 0 / 481 MB, free: 4.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.1491, allocations: 0 / 481 MB, free: 4.301 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004822/0.1496, allocations: 361.2 kB / 481.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.086e-05/0.1497, allocations: 12.02 kB / 481.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.831e-05/0.1497, allocations: 30.75 kB / 481.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.1498, allocations: 4.938 kB / 481.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.1499, allocations: 160.4 kB / 481.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.15, allocations: 4.375 kB / 481.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-06/0.15, allocations: 384 / 481.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.1501, allocations: 34.25 kB / 481.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.1501, allocations: 3.938 kB / 481.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.1502, allocations: 0 / 481.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1502, allocations: 0 / 481.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.585e-05/0.1502, allocations: 11.92 kB / 481.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002123/0.1504, allocations: 145.7 kB / 481.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.513e-05/0.1505, allocations: 18.58 kB / 481.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.343e-05/0.1505, allocations: 4.859 kB / 481.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.1505, allocations: 96 / 481.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.809e-05/0.1506, allocations: 64.27 kB / 481.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.322e-06/0.1506, allocations: 0 / 481.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002402/0.1509, allocations: 71.27 kB / 481.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/0.151, allocations: 77.11 kB / 482 MB, free: 3.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.322e-05/0.151, allocations: 93.98 kB / 482.1 MB, free: 3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.151, allocations: 25.7 kB / 482.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.1511, allocations: 84.12 kB / 482.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.1511, allocations: 0 / 482.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.1512, allocations: 17.72 kB / 482.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1513, allocations: 314.8 kB / 482.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.491e-05/0.1513, allocations: 0 / 482.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.327e-06/0.1514, allocations: 7.938 kB / 482.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.823e-05/0.1514, allocations: 60.33 kB / 482.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1515, allocations: 4 kB / 482.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.263e-05/0.1516, allocations: 63.34 kB / 482.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/0.1516, allocations: 37.69 kB / 482.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1516, allocations: 3.938 kB / 482.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.1516, allocations: 0 / 482.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.332e-06/0.1517, allocations: 0 / 482.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.1517, allocations: 3.938 kB / 482.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.704e-05/0.1517, allocations: 0 / 482.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.1517, allocations: 4.031 kB / 482.7 MB, free: 2.328 MB / 350.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.748e-05/0.1518, allocations: 135.5 kB / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.458e-06/0.1518, allocations: 0 / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.418e-05/0.1518, allocations: 7.062 kB / 482.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1518, allocations: 4 kB / 482.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.1519, allocations: 3.984 kB / 482.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1519, allocations: 0 / 482.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.152, allocations: 141.7 kB / 483 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.152, allocations: 0 / 483 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-06/0.152, allocations: 8 kB / 483 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.152, allocations: 0 / 483 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.152, allocations: 7.938 kB / 483 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.152, allocations: 0 / 483 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.152, allocations: 0 / 483 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/0.1521, allocations: 94.77 kB / 483.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.536e-05/0.1522, allocations: 81.39 kB / 483.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.1522, allocations: 3.938 kB / 483.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.1522, allocations: 8.016 kB / 483.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.048e-05/0.1522, allocations: 0 / 483.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.1523, allocations: 4 kB / 483.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.651e-05/0.1523, allocations: 75.28 kB / 483.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1523, allocations: 0 / 483.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.1525, allocations: 20 kB / 483.3 MB, free: 1.641 MB / 350.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0009558/0.1535, allocations: 0.817 MB / 484.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.72e-05/0.1536, allocations: 63.39 kB / 484.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1536, allocations: 0 / 484.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.017e-05/0.1537, allocations: 55.41 kB / 484.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.1538, allocations: 7.938 kB / 484.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003196/0.1541, allocations: 114.6 kB / 484.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.1544, allocations: 0.6691 MB / 485 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.394e-06/0.1544, allocations: 4 kB / 485 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.343e-05/0.1544, allocations: 7.438 kB / 485 MB, free: 15.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1545, allocations: 0 / 485 MB, free: 15.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01776/0.1722, allocations: 1.61 MB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.754/9.926, allocations: 2.188 kB / 486.6 MB, free: 14.29 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches