Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2.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.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Electrical_DistributionSystemAC_Verification_DistributionSystemLinearIndividual_N_2_M_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Electrical_DistributionSystemAC_Verification_DistributionSystemLinearIndividual_N_2_M_2",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.001219/0.001219, allocations: 108.8 kB / 17.06 MB, free: 6.016 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.00116/0.00116, allocations: 187.1 kB / 18 MB, free: 5.102 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.3/1.3, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 1.089/1.089, allocations: 119.3 MB / 411.2 MB, free: 9.477 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 61.58 kB / 0.5704 GB, free: 40.07 MB / 462.3 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1631, allocations: 80.7 MB / 0.6492 GB, free: 13.57 MB / 0.4983 GB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2): time 0.008526/0.1717, allocations: 8.044 MB / 0.6571 GB, free: 5.492 MB / 0.4983 GB Notification: Performance of NFInst.instExpressions: time 0.00302/0.1748, allocations: 1.482 MB / 0.6585 GB, free: 4.004 MB / 0.4983 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004159/0.1752, allocations: 31.94 kB / 0.6586 GB, free: 3.973 MB / 0.4983 GB Notification: Performance of NFTyping.typeComponents: time 0.0009547/0.1761, allocations: 457.4 kB / 0.659 GB, free: 3.523 MB / 0.4983 GB Notification: Performance of NFTyping.typeBindings: time 0.0006512/0.1769, allocations: 289.4 kB / 0.6593 GB, free: 3.238 MB / 0.4983 GB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.1785, allocations: 0.8644 MB / 0.6601 GB, free: 2.371 MB / 0.4983 GB Notification: Performance of NFFlatten.flatten: time 0.001/0.1795, allocations: 1.011 MB / 0.6611 GB, free: 1.359 MB / 0.4983 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007414/0.1802, allocations: 0.648 MB / 0.6617 GB, free: 0.6836 MB / 0.4983 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.1806, allocations: 418.4 kB / 0.6621 GB, free: 280 kB / 0.4983 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006209/0.1812, allocations: 0.572 MB / 0.6627 GB, free: 15.7 MB / 0.5139 GB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.1813, allocations: 116 kB / 0.6628 GB, free: 15.59 MB / 0.5139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003954/0.1817, allocations: 239.8 kB / 0.663 GB, free: 15.35 MB / 0.5139 GB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.1819, allocations: 231.2 kB / 0.6632 GB, free: 15.12 MB / 0.5139 GB Notification: Performance of NFVerifyModel.verify: time 0.0004551/0.1824, allocations: 0.5638 MB / 0.6638 GB, free: 14.56 MB / 0.5139 GB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.184, allocations: 1.677 MB / 0.6654 GB, free: 12.88 MB / 0.5139 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.184, allocations: 0 / 0.6654 GB, free: 12.88 MB / 0.5139 GB Notification: Performance of FrontEnd: time 1.804e-06/0.1841, allocations: 0 / 0.6654 GB, free: 12.88 MB / 0.5139 GB Notification: Performance of Transformations before backend: time 1.973e-05/0.1841, allocations: 0 / 0.6654 GB, free: 12.88 MB / 0.5139 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.00458/0.1887, allocations: 1.824 MB / 0.6672 GB, free: 10.99 MB / 0.5139 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.1887, allocations: 11.89 kB / 0.6672 GB, free: 10.98 MB / 0.5139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001868/0.1889, allocations: 173.7 kB / 0.6674 GB, free: 10.8 MB / 0.5139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/0.1891, allocations: 116.2 kB / 0.6675 GB, free: 10.69 MB / 0.5139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008372/0.19, allocations: 0.569 MB / 0.6681 GB, free: 10.08 MB / 0.5139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.643e-05/0.19, allocations: 90.73 kB / 0.6681 GB, free: 9.988 MB / 0.5139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.1902, allocations: 112.4 kB / 0.6683 GB, free: 9.879 MB / 0.5139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.1919, allocations: 1.161 MB / 0.6694 GB, free: 8.66 MB / 0.5139 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.192, allocations: 7.875 kB / 0.6694 GB, free: 8.652 MB / 0.5139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.743e-05/0.1921, allocations: 52 kB / 0.6694 GB, free: 8.602 MB / 0.5139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.472e-05/0.1921, allocations: 28 kB / 0.6695 GB, free: 8.574 MB / 0.5139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.1935, allocations: 0.8601 MB / 0.6703 GB, free: 7.707 MB / 0.5139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005185/0.1987, allocations: 4.428 MB / 0.6746 GB, free: 3.121 MB / 0.5139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000957/0.1996, allocations: 0.5395 MB / 0.6752 GB, free: 2.574 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004143/0.2001, allocations: 305.3 kB / 0.6755 GB, free: 2.27 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.2001, allocations: 12.36 kB / 0.6755 GB, free: 2.254 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.2001, allocations: 42.94 kB / 0.6755 GB, free: 2.203 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=53): time 2.505e-06/0.2001, allocations: 0 / 0.6755 GB, free: 2.203 MB / 0.5139 GB Notification: Performance of matching and sorting (n=53): time 0.005113/0.2053, allocations: 1.78 MB / 0.6772 GB, free: 408 kB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.2053, allocations: 55.84 kB / 0.6773 GB, free: 340 kB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004968/0.2058, allocations: 449.8 kB / 0.6777 GB, free: 15.89 MB / 0.5295 GB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.2059, allocations: 37.7 kB / 0.6778 GB, free: 15.84 MB / 0.5295 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/0.2062, allocations: 0.4918 MB / 0.6782 GB, free: 15.34 MB / 0.5295 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.2063, allocations: 198.3 kB / 0.6784 GB, free: 15.15 MB / 0.5295 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.2065, allocations: 122.6 kB / 0.6785 GB, free: 15.02 MB / 0.5295 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.2067, allocations: 362.8 kB / 0.6789 GB, free: 14.66 MB / 0.5295 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002904/0.207, allocations: 201.9 kB / 0.6791 GB, free: 14.46 MB / 0.5295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/0.2074, allocations: 435.5 kB / 0.6795 GB, free: 13.93 MB / 0.5295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007951/0.2082, allocations: 0.6745 MB / 0.6802 GB, free: 13.16 MB / 0.5295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.2082, allocations: 4 kB / 0.6802 GB, free: 13.15 MB / 0.5295 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001605/0.2098, allocations: 0.9946 MB / 0.6811 GB, free: 12.14 MB / 0.5295 GB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.2099, allocations: 8 kB / 0.6811 GB, free: 12.14 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.2099, allocations: 8 kB / 0.6812 GB, free: 12.13 MB / 0.5295 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009657/0.2109, allocations: 385 kB / 0.6815 GB, free: 11.75 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.2111, allocations: 87.83 kB / 0.6816 GB, free: 11.66 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005638/0.2168, allocations: 4.298 MB / 0.6858 GB, free: 7.223 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004234/0.2172, allocations: 87.28 kB / 0.6859 GB, free: 7.137 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.2173, allocations: 35.94 kB / 0.6859 GB, free: 7.102 MB / 0.5295 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (load_2_2.controller.local_reset,load_2_1.controller.local_reset,load_1_2.controller.local_reset,load_1_1.controller.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,30,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004328/0.2177, allocations: 262.5 kB / 0.6862 GB, free: 6.836 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.081e-05/0.2178, allocations: 55.62 kB / 0.6862 GB, free: 6.781 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.2179, allocations: 69.22 kB / 0.6863 GB, free: 6.711 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2179, allocations: 4 kB / 0.6863 GB, free: 6.707 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.323e-05/0.218, allocations: 8 kB / 0.6863 GB, free: 6.699 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.218, allocations: 7.922 kB / 0.6863 GB, free: 6.691 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009085/0.2189, allocations: 0.7903 MB / 0.6871 GB, free: 5.852 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2189, allocations: 0 / 0.6871 GB, free: 5.852 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.2191, allocations: 31.92 kB / 0.6871 GB, free: 5.82 MB / 0.5295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000884/0.22, allocations: 373 kB / 0.6875 GB, free: 5.453 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.22, allocations: 12 kB / 0.6875 GB, free: 5.441 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005429/0.2254, allocations: 4.29 MB / 0.6917 GB, free: 1.012 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.2254, allocations: 4 kB / 0.6917 GB, free: 1.008 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/0.2272, allocations: 1.124 MB / 0.6928 GB, free: 15.87 MB / 0.5452 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.2273, allocations: 136.7 kB / 0.6929 GB, free: 15.71 MB / 0.5452 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.939e-05/0.2274, allocations: 16 kB / 0.6929 GB, free: 15.7 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.2277, allocations: 4 kB / 0.6929 GB, free: 15.7 MB / 0.5452 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.2277, allocations: 48.36 kB / 0.693 GB, free: 15.65 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/0.2278, allocations: 16 kB / 0.693 GB, free: 15.63 MB / 0.5452 GB Notification: Performance of sorting global known variables: time 0.0003548/0.2281, allocations: 315.1 kB / 0.6933 GB, free: 15.33 MB / 0.5452 GB Notification: Performance of sort global known variables: time 2.7e-07/0.2281, allocations: 0 / 0.6933 GB, free: 15.33 MB / 0.5452 GB Notification: Performance of remove unused functions: time 0.0009992/0.2291, allocations: 319.1 kB / 0.6936 GB, free: 15.02 MB / 0.5452 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load_1_1.controller.y,load_1_2.controller.y,load_2_1.controller.y,load_2_2.controller.y) * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,30,77.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002104/0.2313, allocations: 1.701 MB / 0.6952 GB, free: 13.28 MB / 0.5452 GB Notification: Performance of simCode: created initialization part: time 0.001495/0.2328, allocations: 0.8938 MB / 0.6961 GB, free: 12.38 MB / 0.5452 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2328, allocations: 3.938 kB / 0.6961 GB, free: 12.37 MB / 0.5452 GB Notification: Performance of simCode: created simulation system equations: time 0.0009226/0.2337, allocations: 0.6036 MB / 0.6967 GB, free: 11.75 MB / 0.5452 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004831/0.2342, allocations: 65.48 kB / 0.6968 GB, free: 11.69 MB / 0.5452 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008006/0.2422, allocations: 6.261 MB / 0.7029 GB, free: 5.145 MB / 0.5452 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006008/0.2428, allocations: 0.9728 MB / 0.7038 GB, free: 4.145 MB / 0.5452 GB Notification: Performance of simCode: alias equations: time 0.0001461/0.243, allocations: 48.77 kB / 0.7039 GB, free: 4.094 MB / 0.5452 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003284/0.2433, allocations: 299.3 kB / 0.7042 GB, free: 3.801 MB / 0.5452 GB Notification: Performance of SimCode: time 3.5e-07/0.2433, allocations: 0 / 0.7042 GB, free: 3.801 MB / 0.5452 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03629/0.2796, allocations: 15.07 MB / 0.7189 GB, free: 4.984 MB / 0.5608 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.765/10.04, allocations: 8.875 kB / 0.7189 GB, free: 4.977 MB / 0.5608 GB (rm -f ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2.sim & python3 -m fmpy simulate --output-file ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2_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_DistributionSystemAC_Verification_DistributionSystemLinearIndividual_N_2_M_2.fmu > ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2.pipe 2>&1) diffSimulationResults("ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ScalableTestSuite/ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ScalableTestSuite_ScalableTestSuite.Electrical.DistributionSystemAC.Verification.DistributionSystemLinearIndividual_N_2_M_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches