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.001681/0.001681, allocations: 113.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.001819/0.001819, 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.528/1.528, allocations: 222.9 MB / 242.4 MB, free: 15.1 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.2215/0.2215, allocations: 44.2 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 71.88 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3458, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001573/0.3475, allocations: 498.3 kB / 0.5189 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00192/0.3494, allocations: 1.264 MB / 0.5201 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.239e-05/0.3495, allocations: 1.156 kB / 0.5201 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.3495, allocations: 3.938 kB / 0.5201 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001693/0.3497, allocations: 10.81 kB / 0.5201 GB, free: 2.117 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.001125/0.3508, allocations: 248.1 kB / 0.5204 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.584e-05/0.3509, allocations: 3.75 kB / 0.5204 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.42e-05/0.3509, allocations: 5.859 kB / 0.5204 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.757e-05/0.3509, allocations: 2.281 kB / 0.5204 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.979e-05/0.351, allocations: 9.078 kB / 0.5204 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.745e-06/0.351, allocations: 0 / 0.5204 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003996/0.355, allocations: 0.6862 MB / 0.5211 GB, free: 1.801 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.697e-06/0.355, allocations: 0 / 0.5211 GB, free: 1.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.096e-05/0.3551, allocations: 6.156 kB / 0.5211 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.3554, allocations: 178.4 kB / 0.5212 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.3554, allocations: 0 / 0.5212 GB, free: 1.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3554, allocations: 0 / 0.5212 GB, free: 1.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.3554, allocations: 1.094 kB / 0.5212 GB, free: 1.75 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.0004463/0.3559, allocations: 383.4 kB / 0.5216 GB, free: 1.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.3559, allocations: 15.08 kB / 0.5216 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.621e-05/0.356, allocations: 34.75 kB / 0.5216 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.356, allocations: 5.938 kB / 0.5217 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.3561, allocations: 166.8 kB / 0.5218 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.3561, allocations: 2.172 kB / 0.5218 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.3562, allocations: 1.438 kB / 0.5218 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.3563, allocations: 33.06 kB / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.3563, allocations: 0 / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3563, allocations: 1.094 kB / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3563, allocations: 0 / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.278e-05/0.3563, allocations: 1.656 kB / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001443/0.3565, allocations: 153.9 kB / 0.522 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.608e-05/0.3566, allocations: 25.5 kB / 0.522 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.9e-05/0.3566, allocations: 6.578 kB / 0.522 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.3566, allocations: 5.031 kB / 0.522 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/0.3566, allocations: 58.19 kB / 0.5221 GB, free: 0.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.3567, allocations: 0 / 0.5221 GB, free: 0.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002091/0.3569, allocations: 75.16 kB / 0.5222 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.3569, allocations: 82.27 kB / 0.5222 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.577e-05/0.357, allocations: 93.83 kB / 0.5223 GB, free: 492 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.022e-05/0.357, allocations: 26.89 kB / 0.5224 GB, free: 460 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.293e-05/0.357, allocations: 80.7 kB / 0.5224 GB, free: 376 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.3571, allocations: 1.062 kB / 0.5224 GB, free: 376 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/0.3571, allocations: 12.8 kB / 0.5224 GB, free: 360 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.618e-05/0.3572, allocations: 319.7 kB / 0.5227 GB, free: 32 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.266e-05/0.3572, allocations: 1.781 kB / 0.5227 GB, free: 32 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.412e-06/0.3572, allocations: 1.438 kB / 0.5227 GB, free: 32 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.364e-05/0.3573, allocations: 61.53 kB / 0.5228 GB, free: 15.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3573, allocations: 0 / 0.5228 GB, free: 15.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001114/0.3574, allocations: 73.2 kB / 0.5229 GB, free: 15.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.425e-05/0.3575, allocations: 32.09 kB / 0.5229 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3575, allocations: 0.6562 kB / 0.5229 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3575, allocations: 1.344 kB / 0.5229 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.3575, allocations: 4 kB / 0.5229 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.3575, allocations: 0.6562 kB / 0.5229 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.062e-05/0.3576, allocations: 1.312 kB / 0.5229 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.3576, allocations: 1.25 kB / 0.5229 GB, free: 15.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 0.0001303/0.3577, allocations: 135.3 kB / 0.523 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.455e-05/0.3577, allocations: 5.125 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.794e-05/0.3578, allocations: 7.734 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3578, allocations: 1.25 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3578, allocations: 4.656 kB / 0.5231 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3578, allocations: 4 kB / 0.5231 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.358, allocations: 146.7 kB / 0.5232 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.358, allocations: 3.938 kB / 0.5232 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.893e-06/0.358, allocations: 2.188 kB / 0.5232 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.358, allocations: 0 / 0.5232 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.358, allocations: 8.969 kB / 0.5232 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.358, allocations: 0 / 0.5232 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.358, allocations: 1.984 kB / 0.5232 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001558/0.3582, allocations: 102 kB / 0.5233 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.319e-05/0.3583, allocations: 81.7 kB / 0.5234 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.3583, allocations: 1.031 kB / 0.5234 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.34e-05/0.3583, allocations: 1.734 kB / 0.5234 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.397e-05/0.3583, allocations: 5.422 kB / 0.5234 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.3583, allocations: 0 / 0.5234 GB, free: 15.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.004e-05/0.3584, allocations: 78.12 kB / 0.5235 GB, free: 15.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3584, allocations: 0 / 0.5235 GB, free: 15.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004966/0.3589, allocations: 69.03 kB / 0.5235 GB, free: 15.18 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.001451/0.3604, allocations: 0.8659 MB / 0.5244 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001592/0.3605, allocations: 69.94 kB / 0.5245 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.3606, allocations: 0 / 0.5245 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.314e-05/0.3606, allocations: 56.55 kB / 0.5245 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001556/0.3608, allocations: 6.469 kB / 0.5245 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004638/0.3613, allocations: 134.8 kB / 0.5246 GB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.3617, allocations: 0.6768 MB / 0.5253 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.155e-05/0.3617, allocations: 0.7031 kB / 0.5253 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.45e-05/0.3617, allocations: 10.41 kB / 0.5253 GB, free: 13.48 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3617, allocations: 0 / 0.5253 GB, free: 13.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.389, allocations: 2.533 MB / 0.5278 GB, free: 12.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.184/8.573, allocations: 5.062 kB / 0.5278 GB, free: 12.66 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