Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",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.00694/0.00694, allocations: 98.66 kB / 15.73 MB, free: 5.988 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.001672/0.001672, allocations: 191.9 kB / 16.67 MB, free: 5.918 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.609/2.609, allocations: 469.4 MB / 0.7421 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 63.91 kB / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2583, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01529/0.2736, allocations: 14.05 MB / 1.233 GB, free: 0.5625 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01335/0.287, allocations: 9.391 MB / 1.243 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.2884, allocations: 55.69 kB / 1.243 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004268/0.2927, allocations: 1.675 MB / 1.244 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004401/0.2971, allocations: 1.575 MB / 1.246 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002076/0.2992, allocations: 0.7548 MB / 1.247 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003408/0.3026, allocations: 2.52 MB / 1.249 GB, free: 0.5508 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.5386/0.8412, allocations: 1.407 MB / 1.25 GB, free: 8.348 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/0.8433, allocations: 1.069 MB / 1.251 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.8454, allocations: 1.137 MB / 1.253 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004409/0.8459, allocations: 165.1 kB / 1.253 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001665/0.8476, allocations: 0.7878 MB / 1.254 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005893/0.8482, allocations: 0.6277 MB / 1.254 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.8494, allocations: 0.9455 MB / 1.255 GB, free: 7.844 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0033/0.8527, allocations: 2.766 MB / 1.258 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.8527, allocations: 0.7969 kB / 1.258 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8527, allocations: 2.812 kB / 1.258 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.751e-05/0.8528, allocations: 0 / 1.258 GB, free: 7.465 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: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004478/0.8573, allocations: 2.184 MB / 1.26 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.8573, allocations: 14.78 kB / 1.26 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002495/0.8576, allocations: 191.5 kB / 1.26 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/0.8692, allocations: 2.094 MB / 1.262 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003072/0.8723, allocations: 1.304 MB / 1.263 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.447e-05/0.8724, allocations: 89.39 kB / 1.263 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003883/0.8728, allocations: 117.8 kB / 1.264 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006338/0.8791, allocations: 2.681 MB / 1.266 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.623e-05/0.8792, allocations: 10.47 kB / 1.266 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001839/0.8794, allocations: 55.19 kB / 1.266 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006736/0.8801, allocations: 181 kB / 1.266 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008438/0.8885, allocations: 2.799 MB / 1.269 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01483/0.9034, allocations: 10.47 MB / 1.279 GB, free: 15.89 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006918/0.9103, allocations: 2.535 MB / 1.282 GB, free: 15.57 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003357/0.9137, allocations: 1.282 MB / 1.283 GB, free: 15.55 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 8.427e-05/0.9139, allocations: 9.219 kB / 1.283 GB, free: 15.55 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.9139, allocations: 47.88 kB / 1.283 GB, free: 15.51 MB / 1.014 GB Notification: Performance of pre-optimization done (n=89): time 6.662e-06/0.9139, allocations: 0 / 1.283 GB, free: 15.51 MB / 1.014 GB Notification: Performance of matching and sorting (n=131): time 0.04675/0.9607, allocations: 13.39 MB / 1.296 GB, free: 12.65 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.9607, allocations: 66.19 kB / 1.296 GB, free: 12.59 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.9623, allocations: 1.121 MB / 1.297 GB, free: 12.14 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002724/0.9626, allocations: 51.05 kB / 1.297 GB, free: 12.09 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004657/0.963, allocations: 0.725 MB / 1.298 GB, free: 11.52 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004672/0.9635, allocations: 477.5 kB / 1.299 GB, free: 11.15 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005041/0.964, allocations: 259.1 kB / 1.299 GB, free: 11.04 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.9641, allocations: 366.4 kB / 1.299 GB, free: 10.7 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00333/0.9675, allocations: 1.341 MB / 1.301 GB, free: 10.32 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003497/0.971, allocations: 1.602 MB / 1.302 GB, free: 9.66 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006887/0.9779, allocations: 2.993 MB / 1.305 GB, free: 8.496 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.9779, allocations: 2.25 kB / 1.305 GB, free: 8.496 MB / 1.014 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01168/0.9896, allocations: 4.446 MB / 1.309 GB, free: 6.223 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.9897, allocations: 17.88 kB / 1.309 GB, free: 6.215 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.9897, allocations: 6.5 kB / 1.309 GB, free: 6.215 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005185/0.9949, allocations: 1.433 MB / 1.311 GB, free: 5.438 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002141/0.9971, allocations: 436.3 kB / 1.311 GB, free: 5.281 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02567/1.023, allocations: 26.69 MB / 1.337 GB, free: 13.45 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002741/1.026, allocations: 302.9 kB / 1.338 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002295/1.026, allocations: 62.28 kB / 1.338 GB, free: 13.28 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008548/1.027, allocations: 446.4 kB / 1.338 GB, free: 12.97 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000362/1.027, allocations: 172 kB / 1.338 GB, free: 12.88 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/1.039, allocations: 4.458 MB / 1.343 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/1.039, allocations: 12.34 kB / 1.343 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.551e-05/1.039, allocations: 13 kB / 1.343 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/1.039, allocations: 5.109 kB / 1.343 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/1.054, allocations: 6.772 MB / 1.349 GB, free: 6.223 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/1.054, allocations: 7.047 kB / 1.349 GB, free: 6.219 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/1.056, allocations: 379.1 kB / 1.35 GB, free: 6.07 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004554/1.061, allocations: 1.307 MB / 1.351 GB, free: 5.359 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002337/1.061, allocations: 41.41 kB / 1.351 GB, free: 5.332 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02277/1.084, allocations: 25.5 MB / 1.376 GB, free: 13.2 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/1.084, allocations: 7.125 kB / 1.376 GB, free: 13.2 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0109/1.095, allocations: 4.218 MB / 1.38 GB, free: 8.93 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/1.096, allocations: 467.8 kB / 1.38 GB, free: 8.453 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004695/1.096, allocations: 24 kB / 1.38 GB, free: 8.43 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002227/1.099, allocations: 307.5 kB / 1.381 GB, free: 8.129 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003989/1.099, allocations: 131.3 kB / 1.381 GB, free: 8.008 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/1.099, allocations: 47.97 kB / 1.381 GB, free: 7.961 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0009604/1.1, allocations: 0.7565 MB / 1.382 GB, free: 7.203 MB / 1.076 GB Notification: Performance of sort global known variables: time 2.2e-07/1.1, allocations: 0 / 1.382 GB, free: 7.203 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.002245/1.102, allocations: 0.5701 MB / 1.382 GB, free: 6.637 MB / 1.076 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01077/1.113, allocations: 4.802 MB / 1.387 GB, free: 1.785 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.01082/1.124, allocations: 5.143 MB / 1.392 GB, free: 12.52 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/1.124, allocations: 128 / 1.392 GB, free: 12.52 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.006874/1.131, allocations: 3.506 MB / 1.395 GB, free: 8.867 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/1.134, allocations: 0.5455 MB / 1.396 GB, free: 8.34 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04018/1.174, allocations: 19.42 MB / 1.415 GB, free: 4.664 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001089/1.175, allocations: 1.479 MB / 1.416 GB, free: 3.156 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.001518/1.176, allocations: 421.6 kB / 1.417 GB, free: 2.738 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008642/1.177, allocations: 0.632 MB / 1.417 GB, free: 2.105 MB / 1.107 GB Notification: Performance of SimCode: time 8.31e-07/1.177, allocations: 0 / 1.417 GB, free: 2.105 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09811/1.275, allocations: 51.69 MB / 1.468 GB, free: 15.18 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.51/18.79, allocations: 14.59 kB / 1.468 GB, free: 15.17 MB / 1.17 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_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_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches