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.001454/0.001454, allocations: 79.52 kB / 20.49 MB, free: 1.387 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.001596/0.001596, allocations: 161.6 kB / 23.74 MB, free: 4.578 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.414/1.414, allocations: 177.1 MB / 204 MB, free: 9.227 MB / 190.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.2013/0.2013, allocations: 34.25 MB / 294.6 MB, free: 14.62 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.88 kB / 441.9 MB, free: 6.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2716, allocations: 66.05 MB / 0.496 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001728/0.2733, allocations: 0.489 MB / 0.4965 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006263/0.274, allocations: 257.6 kB / 0.4967 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.376e-05/0.274, allocations: 4 kB / 0.4967 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.122e-05/0.274, allocations: 0 / 0.4967 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.274, allocations: 0 / 0.4967 GB, free: 0.9219 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.0003033/0.2743, allocations: 51.81 kB / 0.4968 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.484e-05/0.2744, allocations: 0 / 0.4968 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.124e-05/0.2744, allocations: 3.938 kB / 0.4968 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.798e-05/0.2744, allocations: 8 kB / 0.4968 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.959e-05/0.2744, allocations: 0 / 0.4968 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.2745, allocations: 4 kB / 0.4968 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.2746, allocations: 59.95 kB / 0.4969 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.225e-05/0.2746, allocations: 7.922 kB / 0.4969 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.761e-05/0.2746, allocations: 0 / 0.4969 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.2747, allocations: 51.73 kB / 0.4969 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.2747, allocations: 4 kB / 0.4969 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2747, allocations: 0 / 0.4969 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.2748, allocations: 0 / 0.4969 GB, free: 0.7383 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.0003215/0.2751, allocations: 282.2 kB / 0.4972 GB, free: 436 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2751, allocations: 8.031 kB / 0.4972 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.01e-05/0.2751, allocations: 34.75 kB / 0.4972 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.439e-05/0.2752, allocations: 4.922 kB / 0.4972 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.026e-05/0.2752, allocations: 110.5 kB / 0.4973 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.502e-06/0.2753, allocations: 384 / 0.4973 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-06/0.2753, allocations: 384 / 0.4973 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.464e-05/0.2754, allocations: 59.97 kB / 0.4974 GB, free: 172 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2754, allocations: 3.938 kB / 0.4974 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.2754, allocations: 0 / 0.4974 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.2754, allocations: 0 / 0.4974 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.907e-05/0.2754, allocations: 29.64 kB / 0.4974 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001368/0.2755, allocations: 124.7 kB / 0.4976 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.059e-05/0.2756, allocations: 52.31 kB / 0.4976 GB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.873e-05/0.2756, allocations: 30.56 kB / 0.4976 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-06/0.2756, allocations: 0 / 0.4976 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.2757, allocations: 56.27 kB / 0.4977 GB, free: 15.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.2757, allocations: 4.062 kB / 0.4977 GB, free: 15.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001854/0.2759, allocations: 130.7 kB / 0.4978 GB, free: 15.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.2759, allocations: 77.11 kB / 0.4979 GB, free: 15.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.974e-05/0.276, allocations: 93.81 kB / 0.498 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.276, allocations: 25.7 kB / 0.498 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.341e-05/0.276, allocations: 80.27 kB / 0.4981 GB, free: 15.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.634e-05/0.276, allocations: 4 kB / 0.4981 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.2761, allocations: 17.7 kB / 0.4981 GB, free: 15.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.2762, allocations: 310.8 kB / 0.4984 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.709e-05/0.2762, allocations: 29.7 kB / 0.4984 GB, free: 14.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.176e-05/0.2763, allocations: 29.7 kB / 0.4985 GB, free: 14.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.991e-05/0.2763, allocations: 60.27 kB / 0.4985 GB, free: 14.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.2763, allocations: 3.938 kB / 0.4985 GB, free: 14.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.53e-05/0.2764, allocations: 89.09 kB / 0.4986 GB, free: 14.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/0.2764, allocations: 33.8 kB / 0.4986 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2764, allocations: 7.938 kB / 0.4986 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.2764, allocations: 0 / 0.4986 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.056e-06/0.2764, allocations: 4 kB / 0.4986 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.2764, allocations: 4 kB / 0.4986 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.332e-05/0.2765, allocations: 0 / 0.4986 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.2765, allocations: 0 / 0.4986 GB, free: 14.68 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 9.669e-05/0.2766, allocations: 140.4 kB / 0.4988 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.063e-06/0.2766, allocations: 0 / 0.4988 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.035e-05/0.2766, allocations: 10.88 kB / 0.4988 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.2766, allocations: 0 / 0.4988 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2766, allocations: 4 kB / 0.4988 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-06/0.2766, allocations: 0 / 0.4988 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.599e-05/0.2767, allocations: 116.8 kB / 0.4989 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.2767, allocations: 0 / 0.4989 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.2767, allocations: 0 / 0.4989 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2767, allocations: 3.984 kB / 0.4989 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.2767, allocations: 3.938 kB / 0.4989 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.2767, allocations: 0 / 0.4989 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.2767, allocations: 7.938 kB / 0.4989 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.2768, allocations: 120.5 kB / 0.499 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-06/0.2768, allocations: 8.031 kB / 0.499 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.2768, allocations: 3.938 kB / 0.499 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.095e-06/0.2768, allocations: 3.938 kB / 0.499 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-06/0.2769, allocations: 0 / 0.499 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-06/0.2769, allocations: 4 kB / 0.4991 GB, free: 14.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.284e-05/0.2769, allocations: 75.28 kB / 0.4991 GB, free: 14.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2769, allocations: 0 / 0.4991 GB, free: 14.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002131/0.2771, allocations: 23.92 kB / 0.4991 GB, free: 14.07 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.001045/0.2781, allocations: 0.8323 MB / 0.5 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.2783, allocations: 118.8 kB / 0.5001 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2783, allocations: 0 / 0.5001 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.245e-05/0.2783, allocations: 81.11 kB / 0.5002 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001145/0.2784, allocations: 2.5 kB / 0.5002 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002963/0.2787, allocations: 144.3 kB / 0.5003 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.888e-05/0.2788, allocations: 59.34 kB / 0.5003 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.12e-06/0.2788, allocations: 0 / 0.5003 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.605e-05/0.2788, allocations: 8.5 kB / 0.5004 GB, free: 12.74 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2788, allocations: 3.938 kB / 0.5004 GB, free: 12.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.3061, allocations: 2.277 MB / 0.5026 GB, free: 10.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.12, allocations: 7.938 kB / 0.5026 GB, free: 10.54 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.csv","/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.860525778960437]