Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009894/0.0009893, allocations: 111.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2082/0.2082, allocations: 44.19 MB / 336.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.89 kB / 470 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3257, allocations: 60.82 MB / 0.5184 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001409/0.3271, allocations: 0.4931 MB / 0.5189 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.3289, allocations: 1.262 MB / 0.5201 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.923e-05/0.329, allocations: 0 / 0.5201 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.78e-05/0.329, allocations: 3.938 kB / 0.5201 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.3292, allocations: 14.67 kB / 0.5201 GB, free: 1.996 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.0009676/0.3302, allocations: 240.1 kB / 0.5204 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.228e-05/0.3302, allocations: 8.562 kB / 0.5204 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.263e-05/0.3303, allocations: 2.109 kB / 0.5204 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.808e-05/0.3303, allocations: 5.25 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.711e-05/0.3304, allocations: 5.875 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-06/0.3304, allocations: 0 / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002971/0.3334, allocations: 0.6853 MB / 0.5211 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.678e-06/0.3334, allocations: 0 / 0.5211 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.3334, allocations: 5.812 kB / 0.5211 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000291/0.3337, allocations: 178.7 kB / 0.5212 GB, free: 1.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3337, allocations: 0 / 0.5212 GB, free: 1.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3337, allocations: 1.25 kB / 0.5212 GB, free: 1.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.3337, allocations: 0 / 0.5212 GB, free: 1.637 MB / 382.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.000296/0.334, allocations: 384 kB / 0.5216 GB, free: 1.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.3341, allocations: 10.06 kB / 0.5216 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.619e-05/0.3341, allocations: 31.31 kB / 0.5216 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.448e-05/0.3341, allocations: 5.938 kB / 0.5216 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.29e-05/0.3342, allocations: 166.8 kB / 0.5218 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.3342, allocations: 2.016 kB / 0.5218 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.793e-06/0.3343, allocations: 1.375 kB / 0.5218 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.051e-05/0.3343, allocations: 37.02 kB / 0.5218 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.3343, allocations: 0 / 0.5218 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.3344, allocations: 1.844 kB / 0.5218 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3344, allocations: 0 / 0.5218 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.599e-05/0.3344, allocations: 1.062 kB / 0.5218 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.777e-05/0.3345, allocations: 158.5 kB / 0.522 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.878e-05/0.3345, allocations: 17.41 kB / 0.522 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.496e-05/0.3346, allocations: 7.297 kB / 0.522 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.08e-06/0.3346, allocations: 7.875 kB / 0.522 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.3346, allocations: 61.83 kB / 0.5221 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3346, allocations: 0 / 0.5221 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001429/0.3347, allocations: 67.66 kB / 0.5221 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.3348, allocations: 78.91 kB / 0.5222 GB, free: 488 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.599e-05/0.3348, allocations: 96.94 kB / 0.5223 GB, free: 384 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.242e-06/0.3348, allocations: 31.52 kB / 0.5223 GB, free: 348 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.226e-05/0.3349, allocations: 80.14 kB / 0.5224 GB, free: 264 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.3349, allocations: 1.062 kB / 0.5224 GB, free: 264 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/0.3349, allocations: 12.8 kB / 0.5224 GB, free: 248 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.271e-05/0.335, allocations: 312.8 kB / 0.5227 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.335, allocations: 5.734 kB / 0.5227 GB, free: 15.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.335, allocations: 5.188 kB / 0.5227 GB, free: 15.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.691e-05/0.3351, allocations: 64.84 kB / 0.5228 GB, free: 15.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.3351, allocations: 0 / 0.5228 GB, free: 15.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.851e-05/0.3352, allocations: 65.64 kB / 0.5229 GB, free: 15.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.3352, allocations: 32.33 kB / 0.5229 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3352, allocations: 0.75 kB / 0.5229 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.3352, allocations: 0 / 0.5229 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.3352, allocations: 5.219 kB / 0.5229 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.3352, allocations: 0 / 0.5229 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.3353, allocations: 5.906 kB / 0.5229 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.3353, allocations: 0 / 0.5229 GB, free: 15.74 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 7.567e-05/0.3354, allocations: 139.3 kB / 0.523 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.3354, allocations: 5.062 kB / 0.523 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.264e-05/0.3354, allocations: 16.75 kB / 0.5231 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3354, allocations: 1.094 kB / 0.5231 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3354, allocations: 0.5625 kB / 0.5231 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.3354, allocations: 4 kB / 0.5231 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.654e-05/0.3355, allocations: 146.8 kB / 0.5232 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3355, allocations: 3.938 kB / 0.5232 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3355, allocations: 1.094 kB / 0.5232 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3355, allocations: 0.5156 kB / 0.5232 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.3355, allocations: 5.156 kB / 0.5232 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3355, allocations: 0.6094 kB / 0.5232 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3356, allocations: 1.125 kB / 0.5232 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001041/0.3357, allocations: 97.86 kB / 0.5233 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.292e-05/0.3357, allocations: 81.75 kB / 0.5234 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.3357, allocations: 1.891 kB / 0.5234 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.257e-05/0.3357, allocations: 1.188 kB / 0.5234 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.738e-06/0.3358, allocations: 1.719 kB / 0.5234 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.3358, allocations: 0 / 0.5234 GB, free: 15.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.67e-05/0.3358, allocations: 82.41 kB / 0.5235 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.3358, allocations: 0 / 0.5235 GB, free: 15.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000318/0.3361, allocations: 68.53 kB / 0.5235 GB, free: 15.07 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.0009207/0.3371, allocations: 0.8762 MB / 0.5244 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.365e-05/0.3372, allocations: 58.72 kB / 0.5245 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3372, allocations: 4.062 kB / 0.5245 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.482e-05/0.3372, allocations: 60.42 kB / 0.5245 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.3374, allocations: 13.16 kB / 0.5245 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.3377, allocations: 131 kB / 0.5247 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.3379, allocations: 0.6763 MB / 0.5253 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.947e-06/0.3379, allocations: 1.219 kB / 0.5253 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.64e-05/0.338, allocations: 13.61 kB / 0.5253 GB, free: 13.36 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.338, allocations: 0 / 0.5253 GB, free: 13.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.36, allocations: 2.527 MB / 0.5278 GB, free: 12.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/8.144, allocations: 9.219 kB / 0.5278 GB, free: 12.55 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches