Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.008303/0.008303, allocations: 98.19 kB / 15.73 MB, free: 5.605 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.00188/0.00188, allocations: 199.4 kB / 16.67 MB, free: 5.531 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.451/2.451, allocations: 469.4 MB / 0.7421 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.001511, allocations: 76.11 kB / 1.064 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7328/0.7343, allocations: 159.1 MB / 1.22 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006198/0.7405, allocations: 5.465 MB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0038/0.7444, allocations: 2.622 MB / 1.228 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002723/0.7447, allocations: 19.88 kB / 1.228 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.7463, allocations: 0.6806 MB / 1.228 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0007906/0.7471, allocations: 425.7 kB / 1.229 GB, free: 9.141 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008302/0.748, allocations: 402.4 kB / 1.229 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007798/0.7488, allocations: 0.9436 MB / 1.23 GB, free: 7.805 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005387/0.7493, allocations: 473.1 kB / 1.23 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003619/0.7497, allocations: 374.6 kB / 1.231 GB, free: 6.969 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004099/0.7501, allocations: 406.4 kB / 1.231 GB, free: 6.57 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.445e-05/0.7502, allocations: 48 kB / 1.231 GB, free: 6.523 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005147/0.7507, allocations: 359.2 kB / 1.232 GB, free: 6.172 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.7509, allocations: 251.4 kB / 1.232 GB, free: 5.926 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002811/0.7512, allocations: 342.3 kB / 1.232 GB, free: 5.59 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008882/0.7521, allocations: 0.9815 MB / 1.233 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.7521, allocations: 0 / 1.233 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.282e-06/0.7521, allocations: 0 / 1.233 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.7521, allocations: 0 / 1.233 GB, free: 4.605 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.0014/0.7535, allocations: 0.9961 MB / 1.234 GB, free: 3.559 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.7536, allocations: 12.62 kB / 1.234 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.791e-05/0.7537, allocations: 98.69 kB / 1.234 GB, free: 3.441 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001331/0.755, allocations: 196.3 kB / 1.234 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000736/0.7558, allocations: 0.5184 MB / 1.235 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.7558, allocations: 33.38 kB / 1.235 GB, free: 2.664 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.7559, allocations: 56.55 kB / 1.235 GB, free: 2.609 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.7571, allocations: 0.8355 MB / 1.236 GB, free: 1.691 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.7571, allocations: 3.938 kB / 1.236 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.918e-05/0.7571, allocations: 28 kB / 1.236 GB, free: 1.66 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001839/0.7573, allocations: 60.95 kB / 1.236 GB, free: 1.602 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008501/0.7582, allocations: 0.5736 MB / 1.236 GB, free: 1.023 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004287/0.7625, allocations: 4.578 MB / 1.241 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.763, allocations: 299.2 kB / 1.241 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.7633, allocations: 225.3 kB / 1.241 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.7633, allocations: 4.281 kB / 1.241 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.7634, allocations: 42.78 kB / 1.241 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=33): time 2.585e-06/0.7634, allocations: 0 / 1.241 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of matching and sorting (n=40): time 0.005439/0.7688, allocations: 2.644 MB / 1.244 GB, free: 8.746 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.7689, allocations: 55.41 kB / 1.244 GB, free: 8.68 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000426/0.7693, allocations: 465.9 kB / 1.245 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.7694, allocations: 33.7 kB / 1.245 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.7696, allocations: 344.5 kB / 1.245 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.7697, allocations: 150.7 kB / 1.245 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.7698, allocations: 106.2 kB / 1.245 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.7699, allocations: 362.7 kB / 1.246 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.7703, allocations: 241 kB / 1.246 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004301/0.7707, allocations: 410.4 kB / 1.246 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008083/0.7715, allocations: 0.674 MB / 1.247 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.7715, allocations: 0 / 1.247 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001525/0.7731, allocations: 0.9257 MB / 1.248 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.7731, allocations: 8 kB / 1.248 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.7731, allocations: 4 kB / 1.248 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007322/0.7738, allocations: 222.5 kB / 1.248 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.7744, allocations: 119.8 kB / 1.248 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004587/0.779, allocations: 5.337 MB / 1.253 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/0.7794, allocations: 31.97 kB / 1.253 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.7794, allocations: 24 kB / 1.253 GB, free: 14.65 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002734/0.7797, allocations: 226.2 kB / 1.254 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.052e-05/0.7798, allocations: 59.61 kB / 1.254 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/0.7812, allocations: 0.7775 MB / 1.254 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.7812, allocations: 4 kB / 1.254 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7812, allocations: 4 kB / 1.254 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.7812, allocations: 0 / 1.254 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.7835, allocations: 1.506 MB / 1.256 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.7835, allocations: 4.219 kB / 1.256 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003686/0.7839, allocations: 75.88 kB / 1.256 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006305/0.7845, allocations: 198.4 kB / 1.256 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.7846, allocations: 16 kB / 1.256 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004275/0.7889, allocations: 5.282 MB / 1.261 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7889, allocations: 0 / 1.261 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.7905, allocations: 1.128 MB / 1.262 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002394/0.7908, allocations: 172.7 kB / 1.263 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.991e-05/0.7908, allocations: 16.05 kB / 1.263 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003328/0.7912, allocations: 23.97 kB / 1.263 GB, free: 4.559 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.5e-05/0.7913, allocations: 39.89 kB / 1.263 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.7913, allocations: 8 kB / 1.263 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003065/0.7916, allocations: 310.9 kB / 1.263 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7916, allocations: 4 kB / 1.263 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006453/0.7923, allocations: 164 kB / 1.263 GB, free: 4.047 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001851/0.7941, allocations: 1.696 MB / 1.265 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001532/0.7957, allocations: 1.017 MB / 1.266 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.7957, allocations: 0 / 1.266 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0008831/0.7966, allocations: 0.6877 MB / 1.266 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008504/0.7974, allocations: 182.9 kB / 1.267 GB, free: 348 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006838/0.8043, allocations: 5.618 MB / 1.272 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.8048, allocations: 0.957 MB / 1.273 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003317/0.8051, allocations: 113 kB / 1.273 GB, free: 9.344 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.8054, allocations: 211.4 kB / 1.273 GB, free: 9.137 MB / 0.9981 GB Notification: Performance of SimCode: time 8.41e-07/0.8054, allocations: 0 / 1.273 GB, free: 9.137 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03688/0.8423, allocations: 14.1 MB / 1.287 GB, free: 11.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/11.08, allocations: 15.02 kB / 1.287 GB, free: 11.29 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches