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.00196/0.00196, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.002659/0.002659, allocations: 216 kB / 23.73 MB, free: 4.406 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.513/1.513, allocations: 230.5 MB / 257.4 MB, free: 7.77 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.2324/0.2324, allocations: 46.94 MB / 360.8 MB, free: 3.922 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.002547/0.002547, allocations: 79.86 kB / 0.4961 GB, free: 7.559 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3752, allocations: 66.08 MB / 0.5607 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001716/0.3769, allocations: 483.4 kB / 0.5611 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007686/0.3777, allocations: 261.6 kB / 0.5614 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.763e-05/0.3777, allocations: 4 kB / 0.5614 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.634e-05/0.3777, allocations: 0 / 0.5614 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-06/0.3777, allocations: 7.938 kB / 0.5614 GB, free: 3.301 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.0003863/0.3781, allocations: 55.75 kB / 0.5614 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.646e-05/0.3782, allocations: 0 / 0.5614 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.578e-05/0.3782, allocations: 4 kB / 0.5614 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.262e-05/0.3782, allocations: 4 kB / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.559e-05/0.3783, allocations: 0 / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.217e-06/0.3783, allocations: 0 / 0.5615 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001724/0.3785, allocations: 63.94 kB / 0.5615 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.001e-05/0.3785, allocations: 0 / 0.5615 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.25e-05/0.3785, allocations: 0 / 0.5615 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001593/0.3786, allocations: 55.73 kB / 0.5616 GB, free: 3.125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3786, allocations: 4 kB / 0.5616 GB, free: 3.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3787, allocations: 0 / 0.5616 GB, free: 3.121 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.3787, allocations: 3.938 kB / 0.5616 GB, free: 3.117 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.0004249/0.3791, allocations: 282 kB / 0.5618 GB, free: 2.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.3791, allocations: 8.031 kB / 0.5618 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.792e-05/0.3792, allocations: 38.67 kB / 0.5619 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.3792, allocations: 0.9375 kB / 0.5619 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.3793, allocations: 102.5 kB / 0.562 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.3793, allocations: 4.375 kB / 0.562 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.3793, allocations: 8.359 kB / 0.562 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.3795, allocations: 63.97 kB / 0.5621 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3795, allocations: 3.938 kB / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.3795, allocations: 0 / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3795, allocations: 0 / 0.5621 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.824e-05/0.3795, allocations: 29.69 kB / 0.5621 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001672/0.3797, allocations: 116.8 kB / 0.5622 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.882e-05/0.3798, allocations: 48.22 kB / 0.5622 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.596e-05/0.3798, allocations: 34.66 kB / 0.5623 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.667e-06/0.3798, allocations: 0 / 0.5623 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.087e-05/0.3799, allocations: 56.27 kB / 0.5623 GB, free: 2.168 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.3799, allocations: 4 kB / 0.5623 GB, free: 2.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002445/0.3801, allocations: 134.7 kB / 0.5625 GB, free: 2.008 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.74e-05/0.3802, allocations: 77.11 kB / 0.5625 GB, free: 1.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.395e-05/0.3803, allocations: 93.81 kB / 0.5626 GB, free: 1.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.3803, allocations: 25.7 kB / 0.5627 GB, free: 1.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.243e-05/0.3804, allocations: 80.14 kB / 0.5627 GB, free: 1.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.3804, allocations: 0 / 0.5627 GB, free: 1.699 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/0.3804, allocations: 17.7 kB / 0.5627 GB, free: 1.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.3806, allocations: 314.8 kB / 0.563 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.047e-05/0.3806, allocations: 29.7 kB / 0.5631 GB, free: 1.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.348e-05/0.3806, allocations: 33.83 kB / 0.5631 GB, free: 1.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.491e-05/0.3807, allocations: 60.27 kB / 0.5632 GB, free: 1.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3807, allocations: 3.938 kB / 0.5632 GB, free: 1.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001073/0.3808, allocations: 97.03 kB / 0.5633 GB, free: 1.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.625e-05/0.3809, allocations: 31.42 kB / 0.5633 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3809, allocations: 3.938 kB / 0.5633 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.3809, allocations: 0 / 0.5633 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.3809, allocations: 0 / 0.5633 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.3809, allocations: 0 / 0.5633 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.755e-05/0.3809, allocations: 4.094 kB / 0.5633 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.3809, allocations: 4 kB / 0.5633 GB, free: 1.047 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.0001252/0.381, allocations: 140.8 kB / 0.5634 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-06/0.3811, allocations: 0 / 0.5634 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.711e-05/0.3811, allocations: 6.938 kB / 0.5634 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3811, allocations: 0 / 0.5634 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3811, allocations: 0 / 0.5634 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3811, allocations: 0 / 0.5634 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.3812, allocations: 116.8 kB / 0.5636 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3812, allocations: 0 / 0.5636 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.276e-06/0.3812, allocations: 3.984 kB / 0.5636 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.3812, allocations: 4 kB / 0.5636 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.3812, allocations: 3.938 kB / 0.5636 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3812, allocations: 0 / 0.5636 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3812, allocations: 0 / 0.5636 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.3813, allocations: 124.5 kB / 0.5637 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-06/0.3814, allocations: 4 kB / 0.5637 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.3814, allocations: 3.938 kB / 0.5637 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.3814, allocations: 4 kB / 0.5637 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.647e-05/0.3814, allocations: 0 / 0.5637 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-06/0.3814, allocations: 4 kB / 0.5637 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.336e-05/0.3815, allocations: 79.31 kB / 0.5638 GB, free: 484 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3815, allocations: 0 / 0.5638 GB, free: 484 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002416/0.3817, allocations: 27.92 kB / 0.5638 GB, free: 456 kB / 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.0011/0.3828, allocations: 0.8307 MB / 0.5646 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001349/0.3829, allocations: 118.8 kB / 0.5647 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.3829, allocations: 0 / 0.5647 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.682e-05/0.383, allocations: 81.11 kB / 0.5648 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.3831, allocations: 3.984 kB / 0.5648 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000344/0.3835, allocations: 156.5 kB / 0.565 GB, free: 15.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.819e-05/0.3835, allocations: 55.36 kB / 0.565 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.11e-06/0.3835, allocations: 0 / 0.565 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.815e-05/0.3835, allocations: 7.438 kB / 0.565 GB, free: 15.11 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3835, allocations: 0 / 0.565 GB, free: 15.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.4126, allocations: 2.149 MB / 0.5671 GB, free: 13.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.6, allocations: 3.984 kB / 0.5671 GB, free: 13.05 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.582345831207931]