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.001489/0.001489, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001872/0.001872, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2156/0.2156, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 79.86 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3268, allocations: 62.44 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001802/0.3287, allocations: 492.6 kB / 0.531 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008111/0.3295, allocations: 252.4 kB / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.895e-05/0.3296, allocations: 4.938 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.14e-05/0.3296, allocations: 0 / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.364e-06/0.3296, allocations: 3.938 kB / 0.5312 GB, free: 12.89 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.0003804/0.33, allocations: 56.97 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.53e-05/0.3301, allocations: 5.078 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.359e-05/0.3301, allocations: 1.156 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.111e-05/0.3302, allocations: 1.438 kB / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.964e-05/0.3302, allocations: 0 / 0.5313 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.3302, allocations: 4 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001847/0.3304, allocations: 65.27 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.408e-06/0.3304, allocations: 0 / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.629e-05/0.3304, allocations: 1.438 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.3306, allocations: 53.31 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.3306, allocations: 0 / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3306, allocations: 3.938 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3306, allocations: 0 / 0.5314 GB, free: 12.78 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.0004588/0.3311, allocations: 358.1 kB / 0.5317 GB, free: 12.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.3312, allocations: 9.219 kB / 0.5317 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.276e-05/0.3312, allocations: 36.25 kB / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.3313, allocations: 4.922 kB / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.3314, allocations: 160.4 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.3314, allocations: 1.75 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.3314, allocations: 5.812 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.3315, allocations: 27.67 kB / 0.532 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.3315, allocations: 3.938 kB / 0.532 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.3316, allocations: 1.625 kB / 0.532 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.3316, allocations: 0 / 0.532 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.321e-05/0.3316, allocations: 5.781 kB / 0.532 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.3318, allocations: 149.7 kB / 0.5321 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.565e-05/0.3319, allocations: 18.11 kB / 0.5321 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.831e-05/0.3319, allocations: 8.797 kB / 0.5321 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.797e-06/0.3319, allocations: 5.844 kB / 0.5321 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.406e-05/0.332, allocations: 56.27 kB / 0.5322 GB, free: 11.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.332, allocations: 0 / 0.5322 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000179/0.3321, allocations: 74.7 kB / 0.5323 GB, free: 11.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.3322, allocations: 78.92 kB / 0.5323 GB, free: 11.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.008e-05/0.3323, allocations: 93.81 kB / 0.5324 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.3323, allocations: 25.7 kB / 0.5325 GB, free: 11.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.053e-05/0.3323, allocations: 81.89 kB / 0.5325 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.3324, allocations: 0 / 0.5325 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/0.3324, allocations: 15.44 kB / 0.5326 GB, free: 11.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3325, allocations: 316.8 kB / 0.5329 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.086e-05/0.3325, allocations: 7.938 kB / 0.5329 GB, free: 11.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.728e-06/0.3326, allocations: 5.859 kB / 0.5329 GB, free: 11.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.822e-05/0.3326, allocations: 63.8 kB / 0.5329 GB, free: 10.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3326, allocations: 0 / 0.5329 GB, free: 10.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.252e-05/0.3327, allocations: 58.59 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.3327, allocations: 31.08 kB / 0.533 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.3327, allocations: 3.938 kB / 0.533 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.3328, allocations: 3.984 kB / 0.533 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.3328, allocations: 4.094 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.3328, allocations: 1.812 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.801e-05/0.3328, allocations: 4 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.3328, allocations: 1.781 kB / 0.533 GB, free: 10.88 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 8.78e-05/0.3329, allocations: 137.3 kB / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-06/0.3329, allocations: 0 / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.143e-05/0.3329, allocations: 8.812 kB / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3329, allocations: 0 / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.3329, allocations: 0 / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.3329, allocations: 4 kB / 0.5332 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.878e-05/0.3331, allocations: 151.5 kB / 0.5333 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3331, allocations: 0 / 0.5333 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.764e-06/0.3331, allocations: 1.781 kB / 0.5333 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.3331, allocations: 0 / 0.5333 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.3331, allocations: 3.938 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3331, allocations: 1.781 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3331, allocations: 0 / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.151e-05/0.3332, allocations: 92.61 kB / 0.5334 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.3332, allocations: 79.3 kB / 0.5335 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.3333, allocations: 3.938 kB / 0.5335 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-06/0.3333, allocations: 1.656 kB / 0.5335 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.549e-05/0.3333, allocations: 4 kB / 0.5335 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-06/0.3333, allocations: 5.578 kB / 0.5335 GB, free: 10.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.02e-05/0.3333, allocations: 83.16 kB / 0.5336 GB, free: 10.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3333, allocations: 0 / 0.5336 GB, free: 10.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000231/0.3336, allocations: 19.38 kB / 0.5336 GB, free: 10.23 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.0008499/0.3344, allocations: 0.8084 MB / 0.5344 GB, free: 9.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.3346, allocations: 54.66 kB / 0.5344 GB, free: 9.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3346, allocations: 0 / 0.5344 GB, free: 9.438 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.949e-05/0.3346, allocations: 61.98 kB / 0.5345 GB, free: 9.367 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.3348, allocations: 2.781 kB / 0.5345 GB, free: 9.367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003075/0.3351, allocations: 121.8 kB / 0.5346 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/0.3354, allocations: 0.6729 MB / 0.5353 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.604e-06/0.3354, allocations: 0 / 0.5353 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.661e-05/0.3354, allocations: 7.438 kB / 0.5353 GB, free: 8.516 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3354, allocations: 0 / 0.5353 GB, free: 8.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01884/0.3543, allocations: 1.62 MB / 0.5369 GB, free: 7.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.113, allocations: 7.969 kB / 0.5369 GB, free: 7.551 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