Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_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.006834/0.006834, allocations: 102.1 kB / 15.73 MB, free: 6.469 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.001653/0.001654, allocations: 194 kB / 16.67 MB, free: 6.379 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.696/2.696, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 75.81 kB / 1.054 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2808, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02852/0.3093, allocations: 26.68 MB / 1.233 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01431/0.3237, allocations: 8.071 MB / 1.241 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002493/0.3262, allocations: 119.4 kB / 1.241 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006856/0.3331, allocations: 2.761 MB / 1.244 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004531/0.3377, allocations: 1.578 MB / 1.246 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004216/0.3419, allocations: 1.67 MB / 1.247 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.583/0.9249, allocations: 6.136 MB / 1.253 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008948/0.9339, allocations: 7.325 MB / 1.26 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005731/0.9397, allocations: 2.615 MB / 1.263 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006173/0.9459, allocations: 2.833 MB / 1.266 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001934/0.9479, allocations: 0.5085 MB / 1.266 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004151/0.952, allocations: 1.287 MB / 1.267 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.003799/0.9559, allocations: 2.049 MB / 1.269 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.006155/0.962, allocations: 2.385 MB / 1.272 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01269/0.9748, allocations: 8.045 MB / 1.28 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.9748, allocations: 0 / 1.28 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.913e-06/0.9748, allocations: 0 / 1.28 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0003242/0.9751, allocations: 1.156 kB / 1.28 GB, free: 7.051 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01764/0.9928, allocations: 4.236 MB / 1.284 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.9929, allocations: 11.25 kB / 1.284 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002965/0.9958, allocations: 0.5354 MB / 1.284 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006811/1.003, allocations: 0.8032 MB / 1.285 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008759/1.011, allocations: 2.573 MB / 1.288 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004462/1.012, allocations: 273.5 kB / 1.288 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002796/1.015, allocations: 379.9 kB / 1.288 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01807/1.033, allocations: 5.99 MB / 1.294 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000233/1.033, allocations: 18.58 kB / 1.294 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00155/1.035, allocations: 157.5 kB / 1.294 GB, free: 2.707 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007269/1.035, allocations: 282.9 kB / 1.294 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/1.046, allocations: 4.525 MB / 1.299 GB, free: 1.164 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04007/1.086, allocations: 27.51 MB / 1.326 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002006/1.088, allocations: 1.128 MB / 1.327 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/1.09, allocations: 1.016 MB / 1.328 GB, free: 10.23 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/1.09, allocations: 11.06 kB / 1.328 GB, free: 10.23 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/1.09, allocations: 49.34 kB / 1.328 GB, free: 10.18 MB / 1.029 GB Notification: Performance of pre-optimization done (n=110): time 2.906e-06/1.09, allocations: 0 / 1.328 GB, free: 10.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=131): time 0.02409/1.114, allocations: 9.672 MB / 1.337 GB, free: 4.543 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/1.114, allocations: 65.31 kB / 1.337 GB, free: 4.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002817/1.117, allocations: 1.499 MB / 1.339 GB, free: 3.676 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.000237/1.117, allocations: 51.17 kB / 1.339 GB, free: 3.625 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001351/1.119, allocations: 1.661 MB / 1.341 GB, free: 2.164 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006076/1.119, allocations: 468.8 kB / 1.341 GB, free: 1.77 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006947/1.12, allocations: 327.8 kB / 1.341 GB, free: 1.586 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001088/1.12, allocations: 308.1 kB / 1.342 GB, free: 1.285 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/1.122, allocations: 0.9148 MB / 1.343 GB, free: 0.8008 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/1.123, allocations: 1.464 MB / 1.344 GB, free: 15.61 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003289/1.127, allocations: 2.546 MB / 1.346 GB, free: 13.88 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.245e-05/1.127, allocations: 6.656 kB / 1.346 GB, free: 13.88 MB / 1.045 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005892/1.133, allocations: 3.29 MB / 1.35 GB, free: 12.21 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/1.133, allocations: 13.53 kB / 1.35 GB, free: 12.21 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/1.133, allocations: 26.34 kB / 1.35 GB, free: 12.2 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0022/1.135, allocations: 0.7289 MB / 1.35 GB, free: 11.8 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/1.137, allocations: 385 kB / 1.351 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/1.152, allocations: 17.05 MB / 1.367 GB, free: 11.25 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/1.153, allocations: 103.9 kB / 1.368 GB, free: 11.15 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003193/1.154, allocations: 76 kB / 1.368 GB, free: 11.07 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (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.002671/1.156, allocations: 1.31 MB / 1.369 GB, free: 9.777 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005589/1.157, allocations: 197.7 kB / 1.369 GB, free: 9.582 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004993/1.162, allocations: 2.784 MB / 1.372 GB, free: 6.781 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/1.162, allocations: 16.14 kB / 1.372 GB, free: 6.766 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.397e-05/1.162, allocations: 11 kB / 1.372 GB, free: 6.758 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.725e-05/1.162, allocations: 11.95 kB / 1.372 GB, free: 6.746 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/1.175, allocations: 6.218 MB / 1.378 GB, free: 456 kB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/1.175, allocations: 4 kB / 1.378 GB, free: 452 kB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/1.176, allocations: 230.8 kB / 1.378 GB, free: 232 kB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001955/1.178, allocations: 0.675 MB / 1.379 GB, free: 15.53 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/1.178, allocations: 28 kB / 1.379 GB, free: 15.5 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01432/1.193, allocations: 16.79 MB / 1.395 GB, free: 13.48 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/1.193, allocations: 7.938 kB / 1.395 GB, free: 13.47 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006458/1.199, allocations: 4.008 MB / 1.399 GB, free: 9.355 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/1.2, allocations: 446.7 kB / 1.4 GB, free: 8.898 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005513/1.201, allocations: 43.92 kB / 1.4 GB, free: 8.855 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/1.202, allocations: 79.89 kB / 1.4 GB, free: 8.777 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/1.203, allocations: 116.7 kB / 1.4 GB, free: 8.66 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/1.203, allocations: 40 kB / 1.4 GB, free: 8.621 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.00151/1.204, allocations: 0.9942 MB / 1.401 GB, free: 7.637 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.4e-07/1.204, allocations: 0 / 1.401 GB, free: 7.637 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002707/1.207, allocations: 0.6836 MB / 1.401 GB, free: 6.953 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.006297/1.213, allocations: 4.609 MB / 1.406 GB, free: 2.219 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.005326/1.219, allocations: 3.523 MB / 1.409 GB, free: 14.59 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.219, allocations: 8.062 kB / 1.409 GB, free: 14.58 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.003241/1.222, allocations: 2.279 MB / 1.412 GB, free: 12.18 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004082/1.226, allocations: 0.6835 MB / 1.412 GB, free: 11.52 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03671/1.263, allocations: 21.14 MB / 1.433 GB, free: 5.535 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003589/1.266, allocations: 2.668 MB / 1.436 GB, free: 2.836 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.001528/1.268, allocations: 489.4 kB / 1.436 GB, free: 2.355 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001676/1.27, allocations: 1.276 MB / 1.437 GB, free: 1.078 MB / 1.123 GB Notification: Performance of SimCode: time 1.172e-06/1.27, allocations: 0 / 1.437 GB, free: 1.078 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/1.376, allocations: 57.82 MB / 1.494 GB, free: 8.066 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/13.69, allocations: 4.062 kB / 1.494 GB, free: 8.062 MB / 1.186 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches