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.001056/0.001056, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 202 kB / 18.73 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.397/1.397, 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.2735/0.2735, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 75.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3333, allocations: 62.42 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001459/0.3348, allocations: 0.4905 MB / 0.531 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006184/0.3354, allocations: 253.4 kB / 0.5312 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.372e-05/0.3354, allocations: 0 / 0.5312 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.3355, allocations: 0 / 0.5312 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.532e-06/0.3355, allocations: 5.25 kB / 0.5312 GB, free: 12.86 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.0003219/0.3358, allocations: 55.42 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.226e-05/0.3359, allocations: 1.594 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.3359, allocations: 1.531 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.938e-05/0.3359, allocations: 5.609 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.033e-05/0.336, allocations: 0 / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.336, allocations: 0 / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.3361, allocations: 69.06 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-06/0.3361, allocations: 0 / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.908e-05/0.3362, allocations: 1.531 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.3363, allocations: 52.91 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3363, allocations: 8 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3363, allocations: 3.938 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3363, allocations: 1.781 kB / 0.5314 GB, free: 12.75 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.0003299/0.3367, allocations: 352.1 kB / 0.5317 GB, free: 12.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3367, allocations: 10.75 kB / 0.5317 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.236e-05/0.3368, allocations: 34.69 kB / 0.5318 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.682e-05/0.3368, allocations: 0.9375 kB / 0.5318 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.3369, allocations: 162.2 kB / 0.5319 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.3369, allocations: 384 / 0.5319 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-06/0.3369, allocations: 384 / 0.5319 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9e-05/0.337, allocations: 45.78 kB / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.337, allocations: 3.938 kB / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-06/0.337, allocations: 0 / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.3371, allocations: 0 / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.61e-05/0.3371, allocations: 1.781 kB / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001343/0.3372, allocations: 143.5 kB / 0.5321 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.535e-05/0.3373, allocations: 16.39 kB / 0.5321 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.494e-05/0.3373, allocations: 10.64 kB / 0.5321 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.3373, allocations: 7.969 kB / 0.5322 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/0.3373, allocations: 65.98 kB / 0.5322 GB, free: 11.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/0.3374, allocations: 0 / 0.5322 GB, free: 11.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.3375, allocations: 62.91 kB / 0.5323 GB, free: 11.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.3376, allocations: 77.11 kB / 0.5324 GB, free: 11.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.82e-05/0.3376, allocations: 93.81 kB / 0.5324 GB, free: 11.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.3376, allocations: 31.94 kB / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.868e-05/0.3377, allocations: 84.27 kB / 0.5326 GB, free: 11.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.3377, allocations: 0 / 0.5326 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.3377, allocations: 19.88 kB / 0.5326 GB, free: 11.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.3379, allocations: 310.8 kB / 0.5329 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-06/0.3379, allocations: 1.594 kB / 0.5329 GB, free: 11.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-06/0.3379, allocations: 1.531 kB / 0.5329 GB, free: 11.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.755e-05/0.3379, allocations: 62.86 kB / 0.5329 GB, free: 10.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3379, allocations: 4.062 kB / 0.5329 GB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.546e-05/0.338, allocations: 67.2 kB / 0.533 GB, free: 10.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.3381, allocations: 30.7 kB / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.3381, allocations: 3.938 kB / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.3381, allocations: 1.344 kB / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.3381, allocations: 0 / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.3381, allocations: 0 / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.391e-05/0.3381, allocations: 1.094 kB / 0.533 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.3381, allocations: 5.406 kB / 0.533 GB, free: 10.85 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.239e-05/0.3382, allocations: 141.1 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-06/0.3382, allocations: 1.812 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.608e-06/0.3382, allocations: 7.062 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.3383, allocations: 0 / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3383, allocations: 2.844 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3383, allocations: 0 / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.124e-05/0.3384, allocations: 149.6 kB / 0.5333 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3384, allocations: 0 / 0.5333 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-06/0.3384, allocations: 7.922 kB / 0.5333 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.3384, allocations: 1.969 kB / 0.5333 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.3384, allocations: 7.938 kB / 0.5333 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3384, allocations: 0 / 0.5333 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3384, allocations: 2.094 kB / 0.5333 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.97e-05/0.3385, allocations: 89.98 kB / 0.5334 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.248e-05/0.3386, allocations: 77.11 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.3386, allocations: 3.938 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.348e-06/0.3386, allocations: 3.25 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.197e-05/0.3386, allocations: 4.031 kB / 0.5335 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.3386, allocations: 0 / 0.5335 GB, free: 10.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.271e-05/0.3386, allocations: 75.28 kB / 0.5336 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3386, allocations: 0 / 0.5336 GB, free: 10.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002342/0.3389, allocations: 27.11 kB / 0.5336 GB, free: 10.2 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.0007796/0.3397, allocations: 0.7989 MB / 0.5344 GB, free: 9.477 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.864e-05/0.3398, allocations: 58.95 kB / 0.5344 GB, free: 9.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3398, allocations: 0 / 0.5344 GB, free: 9.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.486e-05/0.3398, allocations: 58.91 kB / 0.5345 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.34, allocations: 6.75 kB / 0.5345 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002749/0.3402, allocations: 117.1 kB / 0.5346 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.3405, allocations: 0.6728 MB / 0.5353 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.94e-06/0.3405, allocations: 0 / 0.5353 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.201e-05/0.3405, allocations: 11.56 kB / 0.5353 GB, free: 8.492 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3405, allocations: 0 / 0.5353 GB, free: 8.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01974/0.3603, allocations: 1.61 MB / 0.5369 GB, free: 7.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/8.009, allocations: 8.141 kB / 0.5369 GB, free: 7.535 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