Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20.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/ScalableTestSuite 2.2.0-master/package.mo", uses=false) Using package ScalableTestSuite with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/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(ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Electrical_DistributionSystemDC_ScaledExperiments_DistributionSystemModelicaIndividual_N_20_M_20",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Electrical_DistributionSystemDC_ScaledExperiments_DistributionSystemModelicaIndividual_N_20_M_20",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.001326/0.001326, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001354/0.001354, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.362/1.362, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 1.046/1.046, allocations: 119.3 MB / 411 MB, free: 9.523 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 59.89 kB / 0.4911 GB, free: 13.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6453/0.6465, allocations: 80.69 MB / 0.5699 GB, free: 43.36 MB / 462.3 MB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20): time 0.1489/0.7955, allocations: 175 MB / 0.7408 GB, free: 1.922 MB / 0.5764 GB Notification: Performance of NFInst.instExpressions: time 0.8269/1.622, allocations: 36.24 MB / 0.7762 GB, free: 96 kB / 0.5923 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.04733/1.67, allocations: 0.7482 MB / 0.7769 GB, free: 96 kB / 0.5923 GB Notification: Performance of NFTyping.typeComponents: time 0.02958/1.699, allocations: 6.447 MB / 0.7832 GB, free: 96 kB / 0.5923 GB Notification: Performance of NFTyping.typeBindings: time 0.05886/1.758, allocations: 11.25 MB / 0.7942 GB, free: 14.9 MB / 0.6079 GB Notification: Performance of NFTyping.typeClassSections: time 0.03874/1.797, allocations: 9.581 MB / 0.8035 GB, free: 12.62 MB / 0.6079 GB Notification: Performance of NFFlatten.flatten: time 0.08998/1.887, allocations: 46.64 MB / 0.8491 GB, free: 2.348 MB / 0.6235 GB Notification: Performance of NFFlatten.resolveConnections: time 0.03441/1.922, allocations: 12.39 MB / 0.8612 GB, free: 7.914 MB / 0.6392 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04444/1.966, allocations: 16.13 MB / 0.8769 GB, free: 7.781 MB / 0.6548 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03914/2.005, allocations: 18.13 MB / 0.8946 GB, free: 5.574 MB / 0.6704 GB Notification: Performance of NFPackage.collectConstants: time 0.02321/2.029, allocations: 3.602 MB / 0.8982 GB, free: 1.969 MB / 0.6704 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02641/2.055, allocations: 3.602 MB / 0.9017 GB, free: 14.36 MB / 0.686 GB Notification: Performance of NFScalarize.scalarize: time 0.01872/2.074, allocations: 8.216 MB / 0.9097 GB, free: 6.121 MB / 0.686 GB Notification: Performance of NFVerifyModel.verify: time 0.06402/2.138, allocations: 19.68 MB / 0.9289 GB, free: 2.344 MB / 0.7017 GB Notification: Performance of NFConvertDAE.convert: time 0.08403/2.222, allocations: 42.64 MB / 0.9706 GB, free: 8.566 MB / 0.7485 GB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/2.222, allocations: 0 / 0.9706 GB, free: 8.566 MB / 0.7485 GB Notification: Performance of FrontEnd: time 2.635e-06/2.222, allocations: 0 / 0.9706 GB, free: 8.566 MB / 0.7485 GB Notification: Performance of Transformations before backend: time 0.002752/2.225, allocations: 0 / 0.9706 GB, free: 8.566 MB / 0.7485 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8189 * Number of variables: 8189 Notification: Performance of Generate backend data structure: time 0.109/2.334, allocations: 36.69 MB / 1.006 GB, free: 3.852 MB / 0.7798 GB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/2.334, allocations: 15.89 kB / 1.006 GB, free: 3.836 MB / 0.7798 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01462/2.349, allocations: 4.135 MB / 1.01 GB, free: 15.7 MB / 0.7954 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0205/2.369, allocations: 4.007 MB / 1.014 GB, free: 11.65 MB / 0.7954 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04066/2.41, allocations: 12.66 MB / 1.027 GB, free: 15.23 MB / 0.811 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003154/2.413, allocations: 2.317 MB / 1.029 GB, free: 12.92 MB / 0.811 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009358/2.422, allocations: 3 MB / 1.032 GB, free: 9.918 MB / 0.811 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5603/2.983, allocations: 25.14 MB / 1.056 GB, free: 160.1 MB / 0.811 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001691/2.985, allocations: 0 / 1.056 GB, free: 160.1 MB / 0.811 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008488/2.993, allocations: 1.4 MB / 1.058 GB, free: 160.1 MB / 0.811 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006888/2.994, allocations: 0.7526 MB / 1.059 GB, free: 160.1 MB / 0.811 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05666/3.05, allocations: 21.47 MB / 1.08 GB, free: 158.1 MB / 0.811 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2328/3.283, allocations: 93.52 MB / 1.171 GB, free: 94.48 MB / 0.811 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03972/3.323, allocations: 28.12 MB / 1.198 GB, free: 66.84 MB / 0.811 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01992/3.343, allocations: 10.77 MB / 1.209 GB, free: 56.04 MB / 0.811 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001613/3.345, allocations: 251.2 kB / 1.209 GB, free: 55.8 MB / 0.811 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004676/3.345, allocations: 495.1 kB / 1.21 GB, free: 55.3 MB / 0.811 GB Notification: Performance of pre-optimization done (n=2460): time 2.985e-05/3.345, allocations: 0 / 1.21 GB, free: 55.3 MB / 0.811 GB Notification: Performance of matching and sorting (n=2460): time 0.06786/3.413, allocations: 31.61 MB / 1.24 GB, free: 24.42 MB / 0.811 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001715/3.413, allocations: 298.6 kB / 1.241 GB, free: 24.12 MB / 0.811 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04067/3.454, allocations: 19.7 MB / 1.26 GB, free: 4.531 MB / 0.811 GB Notification: Performance of collectPreVariables (initialization): time 0.004475/3.458, allocations: 0.5485 MB / 1.26 GB, free: 3.977 MB / 0.811 GB Notification: Performance of collectInitialEqns (initialization): time 0.01497/3.473, allocations: 14.63 MB / 1.275 GB, free: 5.328 MB / 0.8267 GB Notification: Performance of collectInitialBindings (initialization): time 0.0109/3.484, allocations: 8.163 MB / 1.283 GB, free: 13.23 MB / 0.8423 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01471/3.499, allocations: 4.36 MB / 1.287 GB, free: 8.855 MB / 0.8423 GB Notification: Performance of setup shared object (initialization): time 0.0001232/3.499, allocations: 309.1 kB / 1.287 GB, free: 8.551 MB / 0.8423 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01687/3.516, allocations: 7.37 MB / 1.294 GB, free: 1.172 MB / 0.8423 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02234/3.539, allocations: 11.47 MB / 1.306 GB, free: 4.535 MB / 0.8579 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.08215/3.621, allocations: 19.24 MB / 1.324 GB, free: 392 kB / 0.8735 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002234/3.621, allocations: 28 kB / 1.324 GB, free: 364 kB / 0.8735 GB Notification: Performance of matching and sorting (n=3681) (initialization): time 0.493/4.114, allocations: 33.63 MB / 1.357 GB, free: 364.6 MB / 0.9048 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001765/4.114, allocations: 42.72 kB / 1.357 GB, free: 364.6 MB / 0.9048 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002678/4.115, allocations: 89.34 kB / 1.357 GB, free: 364.6 MB / 0.9048 GB Notification: Tearing is skipped for strong component 1 because system size of 1639 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.0003151/4.115, allocations: 165.1 kB / 1.358 GB, free: 364.6 MB / 0.9048 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01633/4.131, allocations: 3.168 MB / 1.361 GB, free: 364.6 MB / 0.9048 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000348/4.132, allocations: 221 kB / 1.361 GB, free: 364.6 MB / 0.9048 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03102/4.163, allocations: 2.748 MB / 1.364 GB, free: 364.2 MB / 0.9048 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005851/4.169, allocations: 0.913 MB / 1.365 GB, free: 364.2 MB / 0.9048 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 402 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2043): * Single equations (assignments): 2042 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(1639,0.2%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01779/4.186, allocations: 3.438 MB / 1.368 GB, free: 364.1 MB / 0.9048 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01009/4.196, allocations: 2.82 MB / 1.371 GB, free: 364.1 MB / 0.9048 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007373/4.204, allocations: 2.75 MB / 1.373 GB, free: 363.8 MB / 0.9048 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002476/4.204, allocations: 231.4 kB / 1.374 GB, free: 363.8 MB / 0.9048 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0009007/4.205, allocations: 234.8 kB / 1.374 GB, free: 363.8 MB / 0.9048 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003849/4.205, allocations: 116.3 kB / 1.374 GB, free: 363.8 MB / 0.9048 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04831/4.254, allocations: 21.51 MB / 1.395 GB, free: 358.5 MB / 0.9048 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003356/4.254, allocations: 0.625 kB / 1.395 GB, free: 358.5 MB / 0.9048 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005372/4.26, allocations: 1.216 MB / 1.396 GB, free: 358.4 MB / 0.9048 GB Notification: Tearing is skipped for strong component 2 because system size of 1639 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/4.26, allocations: 33 kB / 1.396 GB, free: 358.4 MB / 0.9048 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002387/4.262, allocations: 387.1 kB / 1.396 GB, free: 358.1 MB / 0.9048 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.542e-05/4.262, allocations: 27.66 kB / 1.396 GB, free: 358.1 MB / 0.9048 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/4.262, allocations: 0 / 1.396 GB, free: 358.1 MB / 0.9048 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05746/4.32, allocations: 27.05 MB / 1.423 GB, free: 347 MB / 0.9048 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01207/4.332, allocations: 2.993 MB / 1.426 GB, free: 345 MB / 0.9048 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0106/4.342, allocations: 383 kB / 1.426 GB, free: 344.7 MB / 0.9048 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.03177/4.374, allocations: 2.961 MB / 1.429 GB, free: 344.2 MB / 0.9048 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00657/4.381, allocations: 2.494 MB / 1.432 GB, free: 344.1 MB / 0.9048 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003979/4.385, allocations: 0.7091 MB / 1.432 GB, free: 343.9 MB / 0.9048 GB Notification: Performance of sorting global known variables: time 0.03063/4.415, allocations: 13.03 MB / 1.445 GB, free: 339.3 MB / 0.9048 GB Notification: Performance of sort global known variables: time 4.21e-07/4.415, allocations: 3.938 kB / 1.445 GB, free: 339.3 MB / 0.9048 GB Notification: Performance of remove unused functions: time 0.0316/4.447, allocations: 8.801 MB / 1.454 GB, free: 337.4 MB / 0.9048 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (822): * Single equations (assignments): 821 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(1639,0.2%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.05915/4.506, allocations: 28.57 MB / 1.481 GB, free: 319.7 MB / 0.9048 GB Notification: Performance of simCode: created initialization part: time 0.1886/4.695, allocations: 22.33 MB / 1.503 GB, free: 297.4 MB / 0.9048 GB Notification: Performance of simCode: created event and clocks part: time 0.0001311/4.695, allocations: 58.42 kB / 1.503 GB, free: 297.4 MB / 0.9048 GB Notification: Performance of simCode: created simulation system equations: time 0.02571/4.721, allocations: 11.33 MB / 1.514 GB, free: 286.1 MB / 0.9048 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04546/4.766, allocations: 5.958 MB / 1.52 GB, free: 280.1 MB / 0.9048 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.381/6.147, allocations: 0.6825 GB / 2.203 GB, free: 343.2 MB / 0.9048 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01953/6.167, allocations: 11.02 MB / 2.213 GB, free: 341.6 MB / 0.9048 GB Notification: Performance of simCode: alias equations: time 0.02198/6.189, allocations: 2.645 MB / 2.216 GB, free: 340.8 MB / 0.9048 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01846/6.207, allocations: 14.09 MB / 2.23 GB, free: 328.7 MB / 0.9048 GB Notification: Performance of SimCode: time 1.653e-06/6.207, allocations: 0 / 2.23 GB, free: 328.7 MB / 0.9048 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.624/7.831, allocations: 0.5115 GB / 2.741 GB, free: 294.3 MB / 0.9048 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.29/40.12, allocations: 4.375 kB / 2.741 GB, free: 294.3 MB / 0.9048 GB (rm -f ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20.sim & python3 -m fmpy simulate --output-file ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20_res.csv --start-time 0 --stop-time 1 --timeout 300 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ScalableTestSuite_ScalableTestSuite_Electrical_DistributionSystemDC_ScaledExperiments_DistributionSystemModelicaIndividual_N_20_M_20.fmu > ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaIndividual_N_20_M_20.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches