Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Loads.Examples.ThreePhases,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_ThreePhases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_ThreePhases",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.007436/0.007436, allocations: 103.5 kB / 15.74 MB, free: 6.043 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.001536/0.001536, allocations: 200.2 kB / 16.68 MB, free: 5.965 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.994/2.994, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 64.11 kB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2918, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases): time 0.006029/0.2979, allocations: 4.293 MB / 1.246 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.003909/0.3018, allocations: 2.373 MB / 1.248 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003335/0.3022, allocations: 15.88 kB / 1.248 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.3034, allocations: 369.8 kB / 1.248 GB, free: 3.129 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001051/0.3045, allocations: 370.2 kB / 1.249 GB, free: 2.766 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008712/0.3054, allocations: 327.2 kB / 1.249 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0009266/0.3063, allocations: 0.6789 MB / 1.25 GB, free: 1.766 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004628/0.3068, allocations: 266 kB / 1.25 GB, free: 1.5 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.3072, allocations: 259 kB / 1.25 GB, free: 1.246 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004065/0.3076, allocations: 262.9 kB / 1.25 GB, free: 0.9883 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.82e-05/0.3077, allocations: 35.94 kB / 1.25 GB, free: 0.9531 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008389/0.3085, allocations: 431.1 kB / 1.251 GB, free: 0.5312 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.3087, allocations: 147.5 kB / 1.251 GB, free: 396 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.309, allocations: 234.7 kB / 1.251 GB, free: 160 kB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.5348/0.8437, allocations: 0.7341 MB / 1.252 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.8438, allocations: 0.5156 kB / 1.252 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.412e-06/0.8438, allocations: 2.031 kB / 1.252 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.8438, allocations: 0 / 1.252 GB, free: 8.375 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.001115/0.8449, allocations: 0.8055 MB / 1.253 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.845, allocations: 10.16 kB / 1.253 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.214e-05/0.845, allocations: 80.16 kB / 1.253 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.8465, allocations: 182 kB / 1.253 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/0.8471, allocations: 445.4 kB / 1.253 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.8471, allocations: 25.3 kB / 1.253 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.375e-05/0.8472, allocations: 34.44 kB / 1.253 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008544/0.848, allocations: 0.6551 MB / 1.254 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.8481, allocations: 9.719 kB / 1.254 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.315e-05/0.8481, allocations: 15.44 kB / 1.254 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-05/0.8482, allocations: 52.31 kB / 1.254 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007627/0.849, allocations: 0.4936 MB / 1.255 GB, free: 7.215 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.8515, allocations: 3.784 MB / 1.258 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.8532, allocations: 0.6281 MB / 1.259 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.8535, allocations: 177.8 kB / 1.259 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.8535, allocations: 5.969 kB / 1.259 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.8535, allocations: 40.36 kB / 1.259 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=30): time 1.883e-06/0.8535, allocations: 0.9062 kB / 1.259 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.002325/0.8558, allocations: 1.294 MB / 1.26 GB, free: 19.5 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.8559, allocations: 113.7 kB / 1.261 GB, free: 19.38 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004044/0.8563, allocations: 403.4 kB / 1.261 GB, free: 19.25 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.8564, allocations: 30.52 kB / 1.261 GB, free: 19.21 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.8565, allocations: 285.5 kB / 1.261 GB, free: 19.04 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 6.431e-05/0.8566, allocations: 121.2 kB / 1.261 GB, free: 18.96 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.8567, allocations: 107 kB / 1.261 GB, free: 18.94 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.8569, allocations: 350.4 kB / 1.262 GB, free: 18.63 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.8572, allocations: 177.3 kB / 1.262 GB, free: 18.63 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.8575, allocations: 375 kB / 1.262 GB, free: 18.38 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005707/0.8581, allocations: 0.5882 MB / 1.263 GB, free: 18.14 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.8581, allocations: 5.75 kB / 1.263 GB, free: 18.13 MB / 1.014 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009978/0.8591, allocations: 0.6771 MB / 1.264 GB, free: 17.96 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.8591, allocations: 8.094 kB / 1.264 GB, free: 17.96 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.8591, allocations: 6.844 kB / 1.264 GB, free: 17.96 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003258/0.8594, allocations: 105 kB / 1.264 GB, free: 17.91 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.8598, allocations: 113.2 kB / 1.264 GB, free: 17.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003418/0.8633, allocations: 4.342 MB / 1.268 GB, free: 13.66 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003886/0.8637, allocations: 32.47 kB / 1.268 GB, free: 13.66 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.414e-05/0.8637, allocations: 23.69 kB / 1.268 GB, free: 13.65 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (60): * Single equations (assignments): 57 * 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 {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002539/0.864, allocations: 195.8 kB / 1.268 GB, free: 13.5 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.8641, allocations: 57.58 kB / 1.268 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007952/0.8649, allocations: 0.517 MB / 1.269 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.8649, allocations: 3.438 kB / 1.269 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.8649, allocations: 6.5 kB / 1.269 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.8649, allocations: 1.828 kB / 1.269 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.8667, allocations: 1.283 MB / 1.27 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.8667, allocations: 10.88 kB / 1.27 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/0.867, allocations: 66.06 kB / 1.27 GB, free: 12.46 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002607/0.8672, allocations: 87.5 kB / 1.27 GB, free: 12.42 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.8673, allocations: 10.2 kB / 1.27 GB, free: 12.42 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00323/0.8705, allocations: 4.332 MB / 1.274 GB, free: 8.176 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.8705, allocations: 7.109 kB / 1.274 GB, free: 8.172 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000854/0.8714, allocations: 0.782 MB / 1.275 GB, free: 7.629 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.8716, allocations: 152.4 kB / 1.275 GB, free: 7.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.619e-05/0.8717, allocations: 15.67 kB / 1.275 GB, free: 7.492 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.872, allocations: 26.62 kB / 1.275 GB, free: 7.488 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.872, allocations: 43.66 kB / 1.275 GB, free: 7.473 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.8721, allocations: 8.5 kB / 1.275 GB, free: 7.473 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002856/0.8724, allocations: 286.7 kB / 1.276 GB, free: 7.332 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8724, allocations: 0 / 1.276 GB, free: 7.332 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0006895/0.8731, allocations: 119.4 kB / 1.276 GB, free: 7.32 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (33): * Single equations (assignments): 30 * 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 {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00119/0.8743, allocations: 1.322 MB / 1.277 GB, free: 6.258 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001316/0.8756, allocations: 0.8121 MB / 1.278 GB, free: 5.797 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.8756, allocations: 0 / 1.278 GB, free: 5.797 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007274/0.8763, allocations: 0.5458 MB / 1.278 GB, free: 5.414 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009324/0.8773, allocations: 144.8 kB / 1.279 GB, free: 5.363 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005558/0.8829, allocations: 4.559 MB / 1.283 GB, free: 2.336 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.8834, allocations: 0.8536 MB / 1.284 GB, free: 1.625 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002861/0.8837, allocations: 105.6 kB / 1.284 GB, free: 1.613 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.8839, allocations: 156.2 kB / 1.284 GB, free: 1.504 MB / 1.014 GB Notification: Performance of SimCode: time 6.62e-07/0.8839, allocations: 0 / 1.284 GB, free: 1.504 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04145/0.9253, allocations: 10.01 MB / 1.294 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.94, allocations: 21.39 kB / 1.294 GB, free: 0.6172 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_ThreePhases.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_ThreePhases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ThreePhases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches