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.00202/0.00202, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002597/0.002597, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.479/1.479, allocations: 230.5 MB / 258.2 MB, free: 8.047 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.2366/0.2366, allocations: 46.93 MB / 361.6 MB, free: 4.207 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002434/0.002434, allocations: 80.16 kB / 0.4969 GB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3393, allocations: 66.09 MB / 0.5615 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001552/0.3409, allocations: 471.7 kB / 0.5619 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006534/0.3415, allocations: 285.4 kB / 0.5622 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.016e-05/0.3416, allocations: 0 / 0.5622 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.17e-05/0.3416, allocations: 0 / 0.5622 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.591e-06/0.3416, allocations: 0 / 0.5622 GB, free: 3.586 MB / 398.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.0003129/0.3419, allocations: 47.83 kB / 0.5622 GB, free: 3.539 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.958e-05/0.3419, allocations: 8 kB / 0.5623 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.29e-05/0.342, allocations: 3.984 kB / 0.5623 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.631e-05/0.342, allocations: 3.938 kB / 0.5623 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.091e-05/0.342, allocations: 0 / 0.5623 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.864e-06/0.342, allocations: 0 / 0.5623 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.3422, allocations: 67.94 kB / 0.5623 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.836e-06/0.3422, allocations: 4 kB / 0.5623 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.112e-05/0.3422, allocations: 4 kB / 0.5623 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.3423, allocations: 55.66 kB / 0.5624 GB, free: 3.398 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3424, allocations: 0 / 0.5624 GB, free: 3.398 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3424, allocations: 0 / 0.5624 GB, free: 3.398 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.3424, allocations: 0 / 0.5624 GB, free: 3.398 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003162/0.3427, allocations: 286.1 kB / 0.5627 GB, free: 3.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.3427, allocations: 8.031 kB / 0.5627 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.732e-05/0.3427, allocations: 4.188 kB / 0.5627 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.375e-05/0.3428, allocations: 30.75 kB / 0.5627 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.645e-05/0.3428, allocations: 4.938 kB / 0.5627 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.978e-05/0.3429, allocations: 106.5 kB / 0.5628 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-06/0.3429, allocations: 384 / 0.5628 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-06/0.3429, allocations: 384 / 0.5628 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.083e-05/0.343, allocations: 38.02 kB / 0.5628 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-06/0.343, allocations: 0 / 0.5628 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-06/0.343, allocations: 0 / 0.5628 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.343, allocations: 3.938 kB / 0.5628 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.803e-05/0.343, allocations: 7.984 kB / 0.5629 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.3431, allocations: 116.8 kB / 0.563 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.205e-05/0.3432, allocations: 14.58 kB / 0.563 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.3432, allocations: 8.953 kB / 0.563 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.072e-06/0.3432, allocations: 3.938 kB / 0.563 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.282e-05/0.3432, allocations: 64.2 kB / 0.5631 GB, free: 2.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3432, allocations: 4 kB / 0.5631 GB, free: 2.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001631/0.3434, allocations: 67.33 kB / 0.5631 GB, free: 2.488 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/0.3435, allocations: 77.11 kB / 0.5632 GB, free: 2.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.896e-05/0.3435, allocations: 97.75 kB / 0.5633 GB, free: 2.289 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.3435, allocations: 25.7 kB / 0.5633 GB, free: 2.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.451e-05/0.3436, allocations: 84.14 kB / 0.5634 GB, free: 2.172 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.228e-05/0.3436, allocations: 0 / 0.5634 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-05/0.3436, allocations: 13.72 kB / 0.5634 GB, free: 2.152 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3438, allocations: 319 kB / 0.5637 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.225e-05/0.3438, allocations: 4 kB / 0.5637 GB, free: 1.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.53e-06/0.3438, allocations: 0 / 0.5637 GB, free: 1.828 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.331e-05/0.3438, allocations: 64.2 kB / 0.5638 GB, free: 1.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3438, allocations: 0 / 0.5638 GB, free: 1.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.942e-05/0.3439, allocations: 63.41 kB / 0.5638 GB, free: 1.676 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.344, allocations: 37.62 kB / 0.5639 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.344, allocations: 0 / 0.5639 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.758e-06/0.344, allocations: 96 / 0.5639 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.344, allocations: 4 kB / 0.5639 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/0.344, allocations: 3.984 kB / 0.5639 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.344, allocations: 4 kB / 0.5639 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-06/0.344, allocations: 0 / 0.5639 GB, free: 1.621 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: 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.817e-05/0.3441, allocations: 132.9 kB / 0.564 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.3441, allocations: 7.938 kB / 0.564 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.277e-06/0.3441, allocations: 3 kB / 0.564 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3441, allocations: 7.984 kB / 0.564 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3441, allocations: 4 kB / 0.564 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.3441, allocations: 0 / 0.564 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.896e-05/0.3442, allocations: 116.8 kB / 0.5641 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3442, allocations: 4 kB / 0.5641 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3442, allocations: 0 / 0.5641 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.3442, allocations: 3.938 kB / 0.5642 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.3442, allocations: 0 / 0.5642 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3442, allocations: 0 / 0.5642 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3442, allocations: 3.938 kB / 0.5642 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.3444, allocations: 94.83 kB / 0.5642 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.296e-06/0.3444, allocations: 0 / 0.5642 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.3444, allocations: 7.938 kB / 0.5643 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.947e-06/0.3444, allocations: 0 / 0.5643 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.3444, allocations: 3.984 kB / 0.5643 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.3444, allocations: 3.938 kB / 0.5643 GB, free: 1.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.632e-05/0.3444, allocations: 79.22 kB / 0.5643 GB, free: 1.074 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3444, allocations: 0 / 0.5643 GB, free: 1.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.3447, allocations: 23.94 kB / 0.5644 GB, free: 1.051 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: 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.0009731/0.3456, allocations: 0.8024 MB / 0.5651 GB, free: 272 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.491e-05/0.3457, allocations: 63.41 kB / 0.5652 GB, free: 196 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3457, allocations: 0 / 0.5652 GB, free: 196 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.706e-05/0.3458, allocations: 59.39 kB / 0.5653 GB, free: 124 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.3459, allocations: 8.125 kB / 0.5653 GB, free: 116 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/0.3462, allocations: 114.6 kB / 0.5654 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.3465, allocations: 0.6729 MB / 0.566 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.819e-06/0.3465, allocations: 0 / 0.566 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.371e-05/0.3465, allocations: 11.38 kB / 0.566 GB, free: 15.25 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3465, allocations: 0 / 0.566 GB, free: 15.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02068/0.3672, allocations: 1.781 MB / 0.5678 GB, free: 13.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.69, allocations: 11.62 kB / 0.5678 GB, free: 13.57 MB / 414.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.644553326012101]