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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001684/0.001684, allocations: 121.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001998/0.001999, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2284/0.2284, allocations: 46.11 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002362/0.002363, allocations: 75.88 kB / 480.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3301, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001469/0.3317, allocations: 474.2 kB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006429/0.3323, allocations: 269.3 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.188e-05/0.3324, allocations: 0 / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.619e-05/0.3324, allocations: 3.938 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.941e-06/0.3324, allocations: 0 / 0.5313 GB, free: 12.82 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0003174/0.3327, allocations: 48.86 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.794e-05/0.3328, allocations: 5.172 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.898e-05/0.3328, allocations: 1.125 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.556e-05/0.3329, allocations: 1 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.133e-05/0.3329, allocations: 0.9375 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.077e-05/0.3329, allocations: 0 / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.3331, allocations: 68.86 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-06/0.3331, allocations: 4 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.349e-05/0.3331, allocations: 5.078 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.3333, allocations: 53.14 kB / 0.5315 GB, free: 12.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3333, allocations: 3.938 kB / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3333, allocations: 1.25 kB / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.3333, allocations: 0 / 0.5315 GB, free: 12.71 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.0003934/0.3337, allocations: 357.6 kB / 0.5318 GB, free: 12.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3337, allocations: 9.875 kB / 0.5318 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.981e-05/0.3338, allocations: 30.75 kB / 0.5318 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.511e-05/0.3338, allocations: 6.25 kB / 0.5319 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/0.334, allocations: 164.4 kB / 0.532 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.334, allocations: 384 / 0.532 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-06/0.334, allocations: 5.672 kB / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.7e-05/0.3341, allocations: 28.86 kB / 0.532 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.3341, allocations: 3.938 kB / 0.532 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-06/0.3341, allocations: 0 / 0.532 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3341, allocations: 1.281 kB / 0.532 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.062e-05/0.3341, allocations: 9.297 kB / 0.5321 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001573/0.3343, allocations: 147.1 kB / 0.5322 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.983e-05/0.3343, allocations: 15.7 kB / 0.5322 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.939e-05/0.3344, allocations: 10.27 kB / 0.5322 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.715e-06/0.3344, allocations: 1.188 kB / 0.5322 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.867e-05/0.3344, allocations: 57.36 kB / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3344, allocations: 0 / 0.5323 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001721/0.3346, allocations: 74.95 kB / 0.5323 GB, free: 11.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.3347, allocations: 82.2 kB / 0.5324 GB, free: 11.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.932e-05/0.3348, allocations: 93.81 kB / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.3348, allocations: 29.7 kB / 0.5325 GB, free: 11.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.7e-05/0.3348, allocations: 81.2 kB / 0.5326 GB, free: 11.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.3348, allocations: 3.938 kB / 0.5326 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.3349, allocations: 11.81 kB / 0.5326 GB, free: 11.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.335, allocations: 316.1 kB / 0.5329 GB, free: 11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.053e-05/0.335, allocations: 1.188 kB / 0.5329 GB, free: 11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.3351, allocations: 5.156 kB / 0.5329 GB, free: 11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.408e-05/0.3351, allocations: 62.67 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3351, allocations: 1.312 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.606e-05/0.3352, allocations: 66.38 kB / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.3353, allocations: 34.62 kB / 0.5331 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3353, allocations: 3.938 kB / 0.5331 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.3353, allocations: 1.094 kB / 0.5331 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3353, allocations: 0 / 0.5331 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.3353, allocations: 5.281 kB / 0.5331 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.3353, allocations: 0 / 0.5331 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.3353, allocations: 1.562 kB / 0.5331 GB, free: 10.81 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.0001034/0.3354, allocations: 133.8 kB / 0.5332 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-06/0.3355, allocations: 0 / 0.5332 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.024e-05/0.3355, allocations: 8.375 kB / 0.5332 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.3355, allocations: 3.984 kB / 0.5333 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3355, allocations: 0 / 0.5333 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3355, allocations: 1.25 kB / 0.5333 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.3356, allocations: 150.9 kB / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3356, allocations: 0 / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.202e-06/0.3356, allocations: 1.344 kB / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.3356, allocations: 0 / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.3357, allocations: 5.375 kB / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3357, allocations: 0 / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3357, allocations: 0 / 0.5334 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.3358, allocations: 94.42 kB / 0.5335 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.947e-05/0.3358, allocations: 81.14 kB / 0.5336 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.3359, allocations: 9.328 kB / 0.5336 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.3359, allocations: 0 / 0.5336 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.416e-06/0.3359, allocations: 1.469 kB / 0.5336 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-06/0.3359, allocations: 0 / 0.5336 GB, free: 10.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.522e-05/0.3359, allocations: 76.75 kB / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.003e-06/0.3359, allocations: 0 / 0.5337 GB, free: 10.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.3362, allocations: 27.28 kB / 0.5337 GB, free: 10.16 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.001026/0.3372, allocations: 0.8063 MB / 0.5345 GB, free: 9.438 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.488e-05/0.3373, allocations: 61.38 kB / 0.5345 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3373, allocations: 0 / 0.5345 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.78e-05/0.3374, allocations: 58.02 kB / 0.5346 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.3375, allocations: 2.344 kB / 0.5346 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002947/0.3378, allocations: 119.6 kB / 0.5347 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.3381, allocations: 0.6704 MB / 0.5354 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.54e-06/0.3382, allocations: 1.25 kB / 0.5354 GB, free: 8.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.357e-05/0.3382, allocations: 7.438 kB / 0.5354 GB, free: 8.457 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3382, allocations: 0 / 0.5354 GB, free: 8.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.3618, allocations: 1.636 MB / 0.537 GB, free: 7.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.976/8.337, allocations: 1.875 kB / 0.537 GB, free: 7.48 MB / 398.1 MB (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches