Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_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.0009126/0.0009128, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005678/0.005678, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.297/1.297, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.499/2.499, allocations: 462.7 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002865, allocations: 19.17 kB / 0.9029 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2398, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02218/0.2621, allocations: 22.59 MB / 1.081 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.009422/0.2715, allocations: 6.438 MB / 1.087 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001619/0.2731, allocations: 79.5 kB / 1.087 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.2744, allocations: 468.5 kB / 1.088 GB, free: 7.203 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003696/0.2781, allocations: 1.747 MB / 1.089 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002536/0.2807, allocations: 1.188 MB / 1.091 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.008706/0.2894, allocations: 10.61 MB / 1.101 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009499/0.2989, allocations: 8.067 MB / 1.109 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002563/0.3015, allocations: 2.081 MB / 1.111 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004976/0.3064, allocations: 3.189 MB / 1.114 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0006583/0.3071, allocations: 244 kB / 1.114 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003347/0.3105, allocations: 1.061 MB / 1.115 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.003269/0.3138, allocations: 2.101 MB / 1.117 GB, free: 8.789 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.003733/0.3175, allocations: 2.128 MB / 1.119 GB, free: 6.645 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.3278, allocations: 8.138 MB / 1.127 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.3278, allocations: 4 kB / 1.127 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3278, allocations: 0 / 1.127 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001319/0.328, allocations: 0 / 1.127 GB, free: 14.48 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.00812/0.3361, allocations: 3.567 MB / 1.131 GB, free: 10.84 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3362, allocations: 12.03 kB / 1.131 GB, free: 10.83 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007176/0.3369, allocations: 0.5714 MB / 1.131 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007741/0.3446, allocations: 1.685 MB / 1.133 GB, free: 8.559 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003603/0.3483, allocations: 2.567 MB / 1.135 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001714/0.3484, allocations: 279.7 kB / 1.136 GB, free: 5.664 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005803/0.349, allocations: 356.3 kB / 1.136 GB, free: 5.316 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009804/0.3588, allocations: 7.498 MB / 1.143 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-05/0.3589, allocations: 11.94 kB / 1.143 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004065/0.3593, allocations: 155.9 kB / 1.144 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005422/0.3599, allocations: 487.3 kB / 1.144 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008034/0.3679, allocations: 5.697 MB / 1.15 GB, free: 7.207 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02765/0.3956, allocations: 31.7 MB / 1.181 GB, free: 4.738 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/0.3982, allocations: 2.082 MB / 1.183 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002615/0.4008, allocations: 2.167 MB / 1.185 GB, free: 488 kB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001133/0.4009, allocations: 17.31 kB / 1.185 GB, free: 468 kB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.4009, allocations: 59.8 kB / 1.185 GB, free: 400 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=146): time 2.865e-06/0.4009, allocations: 0 / 1.185 GB, free: 400 kB / 0.9356 GB Notification: Performance of matching and sorting (n=251): time 0.6597/1.061, allocations: 75.28 MB / 1.258 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/1.061, allocations: 80.38 kB / 1.258 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002114/1.063, allocations: 1.665 MB / 1.26 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002632/1.063, allocations: 74.11 kB / 1.26 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007898/1.064, allocations: 1.741 MB / 1.262 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005803/1.064, allocations: 0.8549 MB / 1.263 GB, free: 174.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003384/1.065, allocations: 208.2 kB / 1.263 GB, free: 174.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.579e-05/1.065, allocations: 301.7 kB / 1.263 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003664/1.069, allocations: 2.731 MB / 1.266 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003787/1.072, allocations: 3.331 MB / 1.269 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007208/1.08, allocations: 6.395 MB / 1.275 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/1.08, allocations: 6 kB / 1.275 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.02821/1.108, allocations: 14.68 MB / 1.29 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/1.108, allocations: 13.94 kB / 1.29 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/1.108, allocations: 17.88 kB / 1.29 GB, free: 163.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02504/1.133, allocations: 9.235 MB / 1.299 GB, free: 158.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009206/1.134, allocations: 300.5 kB / 1.299 GB, free: 158.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05541/1.189, allocations: 47.14 MB / 1.345 GB, free: 114 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002282/1.192, allocations: 219.7 kB / 1.345 GB, free: 113.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/1.192, allocations: 99.98 kB / 1.345 GB, free: 113.7 MB / 0.9981 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001922/1.194, allocations: 1.583 MB / 1.347 GB, free: 112.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003303/1.194, allocations: 245.1 kB / 1.347 GB, free: 111.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02655/1.221, allocations: 14.76 MB / 1.361 GB, free: 97.07 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/1.221, allocations: 24 kB / 1.361 GB, free: 97.05 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-05/1.221, allocations: 47.38 kB / 1.362 GB, free: 97.01 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/1.221, allocations: 15.78 kB / 1.362 GB, free: 97 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0314/1.252, allocations: 20.52 MB / 1.382 GB, free: 76.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/1.252, allocations: 4.844 kB / 1.382 GB, free: 76.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005855/1.253, allocations: 159.8 kB / 1.382 GB, free: 76.18 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02407/1.277, allocations: 9.009 MB / 1.391 GB, free: 67.14 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001798/1.277, allocations: 48 kB / 1.391 GB, free: 67.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05526/1.332, allocations: 46.74 MB / 1.436 GB, free: 19.54 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.332, allocations: 15.92 kB / 1.436 GB, free: 19.52 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02545/1.358, allocations: 14.36 MB / 1.45 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/1.359, allocations: 0.8493 MB / 1.451 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003414/1.359, allocations: 55.98 kB / 1.451 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/1.361, allocations: 203.7 kB / 1.451 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008608/1.362, allocations: 245.2 kB / 1.452 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/1.362, allocations: 64 kB / 1.452 GB, free: 3.594 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001048/1.363, allocations: 1.129 MB / 1.453 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.363, allocations: 3.938 kB / 1.453 GB, free: 2.438 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003174/1.366, allocations: 1.609 MB / 1.454 GB, free: 0.8281 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02921/1.396, allocations: 14.98 MB / 1.469 GB, free: 1.703 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02038/1.416, allocations: 10.37 MB / 1.479 GB, free: 7.273 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/1.416, allocations: 0 / 1.479 GB, free: 7.273 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.01565/1.432, allocations: 7.156 MB / 1.486 GB, free: 56 kB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003899/1.436, allocations: 0.515 MB / 1.487 GB, free: 15.55 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0966/1.532, allocations: 55.14 MB / 1.54 GB, free: 6.199 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003248/1.535, allocations: 3.226 MB / 1.544 GB, free: 2.938 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001006/1.536, allocations: 391.3 kB / 1.544 GB, free: 2.551 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/1.538, allocations: 1.46 MB / 1.545 GB, free: 1.09 MB / 1.092 GB Notification: Performance of SimCode: time 9.22e-07/1.538, allocations: 0 / 1.545 GB, free: 1.09 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.681/5.219, allocations: 113.3 MB / 1.656 GB, free: 288 kB / 1.201 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002589/5.22, allocations: 260.8 kB / 1.656 GB, free: 15.96 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.368/8.588, allocations: 4 kB / 1.656 GB, free: 15.96 MB / 1.217 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches