Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001476/0.001476, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00195/0.00195, allocations: 201.2 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.449/1.449, 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.2119/0.2119, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 75.88 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.304, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001462/0.3055, allocations: 486.5 kB / 0.531 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.3075, allocations: 1.269 MB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.724e-05/0.3076, allocations: 0 / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.296e-05/0.3076, allocations: 1.281 kB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.3078, allocations: 13.25 kB / 0.5322 GB, free: 12.08 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.3089, allocations: 243.5 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.891e-05/0.3089, allocations: 6.469 kB / 0.5325 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.64e-05/0.309, allocations: 1.125 kB / 0.5325 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.297e-05/0.309, allocations: 2.406 kB / 0.5325 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.629e-05/0.3091, allocations: 12.69 kB / 0.5325 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-06/0.3091, allocations: 0 / 0.5325 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003022/0.3121, allocations: 0.686 MB / 0.5331 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.377e-06/0.3121, allocations: 0 / 0.5331 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.635e-05/0.3122, allocations: 5.328 kB / 0.5331 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.3124, allocations: 175.6 kB / 0.5333 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3125, allocations: 0 / 0.5333 GB, free: 11.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3125, allocations: 0 / 0.5333 GB, free: 11.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.3125, allocations: 4 kB / 0.5333 GB, free: 11.53 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.0004282/0.3129, allocations: 390.6 kB / 0.5337 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.313, allocations: 9.625 kB / 0.5337 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.253e-05/0.313, allocations: 30.75 kB / 0.5337 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.643e-05/0.313, allocations: 2.312 kB / 0.5337 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.3132, allocations: 164.4 kB / 0.5339 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3132, allocations: 5.688 kB / 0.5339 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.3132, allocations: 1.75 kB / 0.5339 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.437e-05/0.3133, allocations: 42.94 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.3133, allocations: 1.375 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.3133, allocations: 0 / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3133, allocations: 0 / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.534e-05/0.3133, allocations: 1.375 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001541/0.3135, allocations: 148.4 kB / 0.5341 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.834e-05/0.3135, allocations: 23.83 kB / 0.5341 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.739e-05/0.3136, allocations: 6.234 kB / 0.5341 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.3136, allocations: 13.3 kB / 0.5341 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.267e-05/0.3136, allocations: 61.64 kB / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.3136, allocations: 0 / 0.5342 GB, free: 10.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001587/0.3138, allocations: 59.66 kB / 0.5342 GB, free: 10.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.3139, allocations: 78.48 kB / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.868e-05/0.3139, allocations: 100.6 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.314, allocations: 27.33 kB / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.746e-05/0.314, allocations: 84.14 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.314, allocations: 0 / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.632e-05/0.3141, allocations: 16.41 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3142, allocations: 312.2 kB / 0.5348 GB, free: 9.793 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.3142, allocations: 1.375 kB / 0.5348 GB, free: 9.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.556e-06/0.3142, allocations: 5.375 kB / 0.5348 GB, free: 9.789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.825e-05/0.3143, allocations: 67 kB / 0.5349 GB, free: 9.711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3143, allocations: 4.062 kB / 0.5349 GB, free: 9.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.294e-05/0.3143, allocations: 67.55 kB / 0.535 GB, free: 9.637 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.3144, allocations: 31.2 kB / 0.535 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.3144, allocations: 1.375 kB / 0.535 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.3144, allocations: 0 / 0.535 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.3144, allocations: 0 / 0.535 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.3144, allocations: 5.359 kB / 0.535 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.649e-05/0.3144, allocations: 3.938 kB / 0.535 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.3145, allocations: 1.375 kB / 0.535 GB, free: 9.598 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.831e-05/0.3145, allocations: 142.3 kB / 0.5351 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.239e-05/0.3146, allocations: 7.938 kB / 0.5351 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.155e-06/0.3146, allocations: 4.5 kB / 0.5352 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3146, allocations: 0 / 0.5352 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3146, allocations: 0 / 0.5352 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.3146, allocations: 5.312 kB / 0.5352 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.607e-05/0.3147, allocations: 147 kB / 0.5353 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.3147, allocations: 5.312 kB / 0.5353 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3147, allocations: 0 / 0.5353 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.3147, allocations: 0 / 0.5353 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.3147, allocations: 5.375 kB / 0.5353 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3147, allocations: 0 / 0.5353 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3147, allocations: 1.375 kB / 0.5353 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.207e-05/0.3148, allocations: 89.83 kB / 0.5354 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.3149, allocations: 82.42 kB / 0.5355 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.3149, allocations: 1.375 kB / 0.5355 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.13e-05/0.3149, allocations: 0 / 0.5355 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.213e-05/0.3149, allocations: 13.28 kB / 0.5355 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.315, allocations: 3.984 kB / 0.5355 GB, free: 9.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.294e-05/0.315, allocations: 82.03 kB / 0.5356 GB, free: 8.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.315, allocations: 0 / 0.5356 GB, free: 8.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002836/0.3153, allocations: 63.8 kB / 0.5356 GB, free: 8.922 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.0009711/0.3163, allocations: 0.867 MB / 0.5365 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.865e-05/0.3164, allocations: 60.84 kB / 0.5365 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3164, allocations: 0 / 0.5365 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.063e-05/0.3164, allocations: 58.09 kB / 0.5366 GB, free: 8.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.3166, allocations: 10.69 kB / 0.5366 GB, free: 8.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003455/0.3169, allocations: 138 kB / 0.5367 GB, free: 7.879 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.3172, allocations: 0.6742 MB / 0.5374 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.806e-06/0.3172, allocations: 1.375 kB / 0.5374 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.3172, allocations: 12.75 kB / 0.5374 GB, free: 7.168 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3172, allocations: 0 / 0.5374 GB, free: 7.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.3407, allocations: 2.519 MB / 0.5399 GB, free: 5.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.818/8.159, allocations: 11.64 kB / 0.5399 GB, free: 5.742 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_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_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches