Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",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.007761/0.007761, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001979/0.001979, allocations: 197.8 kB / 16.67 MB, free: 5.973 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.377/1.377, 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 10.1.1-maint.10.0.x/package.mo): time 2.542/2.542, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.91 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2841, allocations: 151.6 MB / 1.166 GB, free: 7.309 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04103/0.3251, allocations: 37.95 MB / 1.203 GB, free: 1.219 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01995/0.3451, allocations: 11 MB / 1.214 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003975/0.3492, allocations: 155.3 kB / 1.214 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.01121/0.3604, allocations: 4.367 MB / 1.218 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.007225/0.3677, allocations: 2.34 MB / 1.221 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00639/0.3741, allocations: 2.167 MB / 1.223 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01112/0.3852, allocations: 9.307 MB / 1.232 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01817/0.4035, allocations: 11.26 MB / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007532/0.4111, allocations: 4.055 MB / 1.247 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.6172/1.028, allocations: 4.506 MB / 1.251 GB, free: 24.9 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.002899/1.031, allocations: 0.8222 MB / 1.252 GB, free: 24.9 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004922/1.036, allocations: 1.582 MB / 1.254 GB, free: 24.9 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.005056/1.041, allocations: 3.154 MB / 1.257 GB, free: 24.9 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0124/1.054, allocations: 3.652 MB / 1.26 GB, free: 24.57 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.03074/1.084, allocations: 12.35 MB / 1.272 GB, free: 23.38 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/1.084, allocations: 0.7031 kB / 1.272 GB, free: 23.38 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.854e-06/1.084, allocations: 0.5938 kB / 1.272 GB, free: 23.38 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0005289/1.085, allocations: 0 / 1.272 GB, free: 23.38 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.03258/1.118, allocations: 6.465 MB / 1.279 GB, free: 20.99 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/1.118, allocations: 9.469 kB / 1.279 GB, free: 20.99 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00414/1.122, allocations: 0.8301 MB / 1.279 GB, free: 20.92 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007753/1.13, allocations: 1.093 MB / 1.28 GB, free: 20.57 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/1.141, allocations: 3.635 MB / 1.284 GB, free: 19.82 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004363/1.141, allocations: 425 kB / 1.284 GB, free: 19.81 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003099/1.144, allocations: 0.5377 MB / 1.285 GB, free: 19.81 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02489/1.169, allocations: 9.389 MB / 1.294 GB, free: 17.65 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002397/1.169, allocations: 24.91 kB / 1.294 GB, free: 17.64 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002304/1.172, allocations: 245.9 kB / 1.294 GB, free: 17.47 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006826/1.172, allocations: 420.8 kB / 1.295 GB, free: 17.43 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01811/1.191, allocations: 7.123 MB / 1.302 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0529/1.243, allocations: 41.07 MB / 1.342 GB, free: 11.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004546/1.248, allocations: 3.108 MB / 1.345 GB, free: 10.11 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002769/1.251, allocations: 2.151 MB / 1.347 GB, free: 8.988 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/1.251, allocations: 22.56 kB / 1.347 GB, free: 8.984 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/1.251, allocations: 57.88 kB / 1.347 GB, free: 8.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=209): time 3.817e-06/1.251, allocations: 0 / 1.347 GB, free: 8.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=212): time 0.02344/1.274, allocations: 10.63 MB / 1.357 GB, free: 2.922 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/1.275, allocations: 83.84 kB / 1.358 GB, free: 2.848 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00264/1.277, allocations: 2.005 MB / 1.36 GB, free: 1.758 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0002104/1.277, allocations: 61.48 kB / 1.36 GB, free: 1.699 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001551/1.279, allocations: 2.47 MB / 1.362 GB, free: 15.53 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006671/1.28, allocations: 0.7742 MB / 1.363 GB, free: 14.86 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007238/1.28, allocations: 477.3 kB / 1.363 GB, free: 14.6 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 9.461e-05/1.281, allocations: 302.2 kB / 1.363 GB, free: 14.3 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/1.282, allocations: 1.377 MB / 1.365 GB, free: 13.58 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/1.285, allocations: 2.104 MB / 1.367 GB, free: 11.93 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00426/1.289, allocations: 3.77 MB / 1.371 GB, free: 9.453 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/1.289, allocations: 7.812 kB / 1.371 GB, free: 9.453 MB / 1.045 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007529/1.296, allocations: 5.083 MB / 1.376 GB, free: 6.109 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.113e-05/1.296, allocations: 17.88 kB / 1.376 GB, free: 6.094 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/1.296, allocations: 20 kB / 1.376 GB, free: 6.074 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00344/1.3, allocations: 1.586 MB / 1.377 GB, free: 4.48 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/1.302, allocations: 450.8 kB / 1.378 GB, free: 4.07 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02191/1.323, allocations: 18.6 MB / 1.396 GB, free: 0.9648 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002833/1.326, allocations: 139.9 kB / 1.396 GB, free: 0.8281 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000453/1.327, allocations: 112 kB / 1.396 GB, free: 0.7188 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004166/1.331, allocations: 1.933 MB / 1.398 GB, free: 14.8 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007597/1.332, allocations: 310.1 kB / 1.398 GB, free: 14.5 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007036/1.339, allocations: 4.45 MB / 1.402 GB, free: 10.07 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/1.339, allocations: 20 kB / 1.402 GB, free: 10.05 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.02e-05/1.339, allocations: 16.12 kB / 1.403 GB, free: 10.04 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/1.339, allocations: 11.95 kB / 1.403 GB, free: 10.03 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/1.356, allocations: 9.682 MB / 1.412 GB, free: 344 kB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/1.356, allocations: 11.84 kB / 1.412 GB, free: 336 kB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/1.357, allocations: 229.6 kB / 1.412 GB, free: 116 kB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003386/1.361, allocations: 1.433 MB / 1.414 GB, free: 14.68 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001798/1.361, allocations: 36 kB / 1.414 GB, free: 14.64 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/1.383, allocations: 18.59 MB / 1.432 GB, free: 11.55 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/1.383, allocations: 4 kB / 1.432 GB, free: 11.54 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007888/1.391, allocations: 4.553 MB / 1.436 GB, free: 6.961 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001915/1.393, allocations: 0.6436 MB / 1.437 GB, free: 6.297 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008688/1.394, allocations: 47.94 kB / 1.437 GB, free: 6.25 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/1.396, allocations: 115.9 kB / 1.437 GB, free: 6.137 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000494/1.396, allocations: 180.3 kB / 1.437 GB, free: 5.969 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/1.396, allocations: 60 kB / 1.437 GB, free: 5.91 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.001972/1.398, allocations: 1.319 MB / 1.439 GB, free: 4.582 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.6e-07/1.398, allocations: 0 / 1.439 GB, free: 4.582 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.004114/1.402, allocations: 1.141 MB / 1.44 GB, free: 3.441 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007465/1.41, allocations: 5.174 MB / 1.445 GB, free: 14.25 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.00752/1.417, allocations: 4.73 MB / 1.449 GB, free: 9.582 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.418, allocations: 0 / 1.449 GB, free: 9.582 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.004668/1.422, allocations: 2.928 MB / 1.452 GB, free: 6.641 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005301/1.428, allocations: 0.8849 MB / 1.453 GB, free: 5.785 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05367/1.481, allocations: 30.55 MB / 1.483 GB, free: 6.297 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005845/1.487, allocations: 3.694 MB / 1.486 GB, free: 2.566 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.002151/1.489, allocations: 0.5595 MB / 1.487 GB, free: 2 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002786/1.492, allocations: 1.948 MB / 1.489 GB, free: 52 kB / 1.154 GB Notification: Performance of SimCode: time 9.22e-07/1.492, allocations: 0 / 1.489 GB, free: 52 kB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1465/1.639, allocations: 85.26 MB / 1.572 GB, free: 11.96 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/16.05, allocations: 3.859 kB / 1.572 GB, free: 11.96 MB / 1.248 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches