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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001282/0.001282, allocations: 120.4 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 208.9 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.24/0.24, allocations: 46.9 MB / 357.4 MB, free: 10.5 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002389/0.002389, allocations: 79.86 kB / 0.4912 GB, free: 8.398 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1403, allocations: 65.99 MB / 0.5557 GB, free: 6.277 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001827/0.1421, allocations: 484.9 kB / 0.5561 GB, free: 5.801 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007391/0.1428, allocations: 267.6 kB / 0.5564 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.236e-05/0.1429, allocations: 0 / 0.5564 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.1429, allocations: 0 / 0.5564 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.512e-06/0.1429, allocations: 0 / 0.5564 GB, free: 5.539 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464: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.0003802/0.1433, allocations: 55.81 kB / 0.5564 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.812e-05/0.1433, allocations: 0 / 0.5564 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.253e-05/0.1434, allocations: 8 kB / 0.5564 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.882e-05/0.1434, allocations: 0 / 0.5564 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.605e-05/0.1434, allocations: 0 / 0.5564 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.929e-06/0.1434, allocations: 0 / 0.5564 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.1436, allocations: 63.95 kB / 0.5565 GB, free: 5.414 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-06/0.1436, allocations: 0 / 0.5565 GB, free: 5.414 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.39e-05/0.1436, allocations: 7.984 kB / 0.5565 GB, free: 5.406 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.1438, allocations: 55.81 kB / 0.5566 GB, free: 5.352 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1438, allocations: 3.938 kB / 0.5566 GB, free: 5.348 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1438, allocations: 0 / 0.5566 GB, free: 5.348 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.1438, allocations: 0 / 0.5566 GB, free: 5.348 MB / 414.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.0004113/0.1442, allocations: 365.1 kB / 0.5569 GB, free: 4.934 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1443, allocations: 8.031 kB / 0.5569 GB, free: 4.926 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.656e-05/0.1443, allocations: 34.73 kB / 0.557 GB, free: 4.883 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.682e-05/0.1443, allocations: 0.9375 kB / 0.557 GB, free: 4.883 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.1445, allocations: 160.4 kB / 0.5571 GB, free: 4.688 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1445, allocations: 384 / 0.5571 GB, free: 4.688 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.1445, allocations: 4.375 kB / 0.5571 GB, free: 4.684 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.59e-05/0.1446, allocations: 30.27 kB / 0.5571 GB, free: 4.648 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.1446, allocations: 3.938 kB / 0.5572 GB, free: 4.645 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.1446, allocations: 4 kB / 0.5572 GB, free: 4.641 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1446, allocations: 4 kB / 0.5572 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.988e-05/0.1446, allocations: 3.938 kB / 0.5572 GB, free: 4.633 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.1448, allocations: 145.7 kB / 0.5573 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.759e-05/0.1448, allocations: 18.61 kB / 0.5573 GB, free: 4.414 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.547e-05/0.1449, allocations: 4.859 kB / 0.5573 GB, free: 4.406 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.806e-06/0.1449, allocations: 0 / 0.5573 GB, free: 4.406 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.099e-05/0.1449, allocations: 64.27 kB / 0.5574 GB, free: 4.328 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1449, allocations: 3.938 kB / 0.5574 GB, free: 4.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001995/0.1451, allocations: 71.33 kB / 0.5575 GB, free: 4.242 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.1452, allocations: 81.11 kB / 0.5575 GB, free: 4.145 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.514e-05/0.1452, allocations: 97.75 kB / 0.5576 GB, free: 4.039 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1453, allocations: 25.7 kB / 0.5577 GB, free: 4.008 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.687e-05/0.1453, allocations: 81.83 kB / 0.5577 GB, free: 3.926 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.1453, allocations: 0 / 0.5577 GB, free: 3.926 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.1454, allocations: 21.84 kB / 0.5578 GB, free: 3.898 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1455, allocations: 310.8 kB / 0.558 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.212e-05/0.1455, allocations: 3.984 kB / 0.5581 GB, free: 3.582 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.187e-06/0.1455, allocations: 0 / 0.5581 GB, free: 3.582 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.037e-05/0.1456, allocations: 60.27 kB / 0.5581 GB, free: 3.508 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1456, allocations: 0 / 0.5581 GB, free: 3.508 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001105/0.1457, allocations: 67.34 kB / 0.5582 GB, free: 3.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.1458, allocations: 33.78 kB / 0.5582 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.1458, allocations: 7.938 kB / 0.5582 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.1458, allocations: 0 / 0.5582 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.1458, allocations: 4 kB / 0.5582 GB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1458, allocations: 0 / 0.5582 GB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.566e-05/0.1458, allocations: 0 / 0.5582 GB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.413e-06/0.1458, allocations: 0 / 0.5582 GB, free: 3.379 MB / 414.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 0.0001014/0.1459, allocations: 135.5 kB / 0.5583 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.366e-06/0.1459, allocations: 0 / 0.5583 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.162e-05/0.1459, allocations: 7.062 kB / 0.5584 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.1459, allocations: 4 kB / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1459, allocations: 0 / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1459, allocations: 3.984 kB / 0.5584 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.1461, allocations: 149.7 kB / 0.5585 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1461, allocations: 0 / 0.5585 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1461, allocations: 0 / 0.5585 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1461, allocations: 0 / 0.5585 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.1461, allocations: 11.94 kB / 0.5585 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.1461, allocations: 0 / 0.5585 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1461, allocations: 0 / 0.5585 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.1462, allocations: 98.77 kB / 0.5586 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.1463, allocations: 77.11 kB / 0.5587 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.1463, allocations: 11.88 kB / 0.5587 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-06/0.1463, allocations: 0 / 0.5587 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.882e-05/0.1463, allocations: 3.984 kB / 0.5587 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.1463, allocations: 0 / 0.5587 GB, free: 2.781 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.582e-05/0.1463, allocations: 75.28 kB / 0.5588 GB, free: 2.707 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1463, allocations: 4.031 kB / 0.5588 GB, free: 2.703 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002363/0.1466, allocations: 23.94 kB / 0.5588 GB, free: 2.68 MB / 414.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.001063/0.1476, allocations: 0.7967 MB / 0.5596 GB, free: 1.902 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.1478, allocations: 55.41 kB / 0.5596 GB, free: 1.836 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1478, allocations: 0 / 0.5596 GB, free: 1.836 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.497e-05/0.1478, allocations: 67.45 kB / 0.5597 GB, free: 1.758 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.1479, allocations: 1.719 kB / 0.5597 GB, free: 1.758 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003376/0.1483, allocations: 126.7 kB / 0.5598 GB, free: 1.594 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.1486, allocations: 0.669 MB / 0.5605 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.063e-06/0.1486, allocations: 0 / 0.5605 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.778e-05/0.1487, allocations: 7.438 kB / 0.5605 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1487, allocations: 7.938 kB / 0.5605 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0261/0.1748, allocations: 1.621 MB / 0.5621 GB, free: 15.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.261/8.436, allocations: 18.62 kB / 0.5621 GB, free: 15.3 MB / 430.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.395789133850485]