Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00289/0.00289, allocations: 215.8 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.544/1.544, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.269/0.269, allocations: 46.96 MB / 360.9 MB, free: 4.016 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 67.89 kB / 0.4961 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3185, allocations: 66.03 MB / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001606/0.3201, allocations: 489.1 kB / 0.561 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006347/0.3207, allocations: 265.6 kB / 0.5613 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.814e-05/0.3207, allocations: 3.938 kB / 0.5613 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.38e-05/0.3207, allocations: 0 / 0.5613 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.979e-06/0.3207, allocations: 0 / 0.5613 GB, free: 3.496 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0003158/0.3211, allocations: 55.8 kB / 0.5613 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.371e-05/0.3211, allocations: 0 / 0.5613 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.374e-05/0.3212, allocations: 4 kB / 0.5614 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.495e-05/0.3212, allocations: 0 / 0.5614 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.263e-05/0.3212, allocations: 0 / 0.5614 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.396e-06/0.3212, allocations: 0 / 0.5614 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.3213, allocations: 71.94 kB / 0.5614 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-06/0.3214, allocations: 3.938 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.207e-05/0.3214, allocations: 4 kB / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.3215, allocations: 47.73 kB / 0.5615 GB, free: 3.316 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3215, allocations: 3.938 kB / 0.5615 GB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3215, allocations: 0 / 0.5615 GB, free: 3.312 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.3215, allocations: 0 / 0.5615 GB, free: 3.312 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.0003398/0.3219, allocations: 286 kB / 0.5617 GB, free: 2.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3219, allocations: 8.031 kB / 0.5618 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.807e-05/0.3219, allocations: 38.67 kB / 0.5618 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.125e-05/0.322, allocations: 4.938 kB / 0.5618 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.994e-05/0.322, allocations: 106.5 kB / 0.5619 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-06/0.3221, allocations: 384 / 0.5619 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.3221, allocations: 384 / 0.5619 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.427e-05/0.3222, allocations: 55.97 kB / 0.562 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.3222, allocations: 3.938 kB / 0.562 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.361e-06/0.3222, allocations: 0 / 0.562 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.3222, allocations: 0 / 0.562 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.481e-05/0.3222, allocations: 33.7 kB / 0.562 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001366/0.3224, allocations: 120.7 kB / 0.5621 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.834e-05/0.3224, allocations: 48.25 kB / 0.5622 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.912e-05/0.3224, allocations: 34.56 kB / 0.5622 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.654e-06/0.3224, allocations: 0 / 0.5622 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.21e-05/0.3225, allocations: 64.33 kB / 0.5622 GB, free: 2.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.3225, allocations: 0 / 0.5622 GB, free: 2.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001921/0.3227, allocations: 118.7 kB / 0.5624 GB, free: 2.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.3227, allocations: 81.05 kB / 0.5624 GB, free: 2.117 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.161e-05/0.3228, allocations: 97.81 kB / 0.5625 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.3228, allocations: 25.7 kB / 0.5626 GB, free: 1.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/0.3229, allocations: 80.14 kB / 0.5626 GB, free: 1.898 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.3229, allocations: 8.062 kB / 0.5626 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/0.3229, allocations: 17.7 kB / 0.5627 GB, free: 1.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3231, allocations: 310.8 kB / 0.563 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.551e-05/0.3231, allocations: 29.7 kB / 0.563 GB, free: 1.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.187e-05/0.3231, allocations: 25.7 kB / 0.563 GB, free: 1.488 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.426e-05/0.3232, allocations: 64.27 kB / 0.5631 GB, free: 1.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3232, allocations: 0 / 0.5631 GB, free: 1.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.188e-05/0.3233, allocations: 89.09 kB / 0.5631 GB, free: 1.305 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.3233, allocations: 29.7 kB / 0.5632 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3233, allocations: 7.875 kB / 0.5632 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.3233, allocations: 8.094 kB / 0.5632 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.3233, allocations: 0 / 0.5632 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.3233, allocations: 0 / 0.5632 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.379e-05/0.3233, allocations: 3.938 kB / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.3233, allocations: 4 kB / 0.5632 GB, free: 1.246 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 0.0001098/0.3234, allocations: 143.5 kB / 0.5633 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.3235, allocations: 3.984 kB / 0.5633 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.256e-05/0.3235, allocations: 6.938 kB / 0.5633 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3235, allocations: 0 / 0.5633 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3235, allocations: 0 / 0.5633 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3235, allocations: 4 kB / 0.5634 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.947e-05/0.3236, allocations: 116.8 kB / 0.5635 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3236, allocations: 0 / 0.5635 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.484e-06/0.3236, allocations: 3.984 kB / 0.5635 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.3236, allocations: 0 / 0.5635 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.3236, allocations: 3.938 kB / 0.5635 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3236, allocations: 4 kB / 0.5635 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3236, allocations: 0 / 0.5635 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00012/0.3237, allocations: 120.5 kB / 0.5636 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-06/0.3237, allocations: 0 / 0.5636 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.3237, allocations: 7.969 kB / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-06/0.3237, allocations: 0 / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.311e-05/0.3237, allocations: 4 kB / 0.5636 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.3238, allocations: 4 kB / 0.5636 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.912e-05/0.3238, allocations: 75.28 kB / 0.5637 GB, free: 0.668 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3238, allocations: 0 / 0.5637 GB, free: 0.668 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002264/0.324, allocations: 27.86 kB / 0.5637 GB, free: 0.6406 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.001042/0.3251, allocations: 0.8399 MB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.3252, allocations: 114.7 kB / 0.5646 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3252, allocations: 8.062 kB / 0.5646 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.999e-05/0.3252, allocations: 81.11 kB / 0.5647 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.3254, allocations: 4 kB / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003064/0.3257, allocations: 144.4 kB / 0.5649 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.492e-05/0.3257, allocations: 59.34 kB / 0.5649 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.97e-06/0.3257, allocations: 0 / 0.5649 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.461e-05/0.3257, allocations: 7.438 kB / 0.5649 GB, free: 15.32 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3257, allocations: 4 kB / 0.5649 GB, free: 15.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/0.3525, allocations: 2.156 MB / 0.567 GB, free: 13.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.58, allocations: 3.375 kB / 0.567 GB, free: 13.29 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.537032505962998]