Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.ACLineMatrix_RL_N,fileNamePrefix="Buildings_9_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_9_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.007656/0.007656, allocations: 104.8 kB / 15.74 MB, free: 6.039 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.001636/0.001636, allocations: 196 kB / 16.68 MB, free: 5.957 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.208/2.208, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 63.91 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8824/0.8839, allocations: 140.4 MB / 1.087 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02899/0.9129, allocations: 23.42 MB / 1.11 GB, free: 5.172 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01369/0.9266, allocations: 6.477 MB / 1.117 GB, free: 0.6797 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003302/0.93, allocations: 99.12 kB / 1.117 GB, free: 0.6484 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004832/0.9348, allocations: 1.491 MB / 1.118 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006865/0.9417, allocations: 1.822 MB / 1.12 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004933/0.9467, allocations: 1.479 MB / 1.121 GB, free: 13.9 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01107/0.9578, allocations: 6.905 MB / 1.128 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01305/0.9708, allocations: 6.935 MB / 1.135 GB, free: 8.121 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007508/0.9784, allocations: 2.872 MB / 1.138 GB, free: 6.844 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007395/0.9858, allocations: 3.482 MB / 1.141 GB, free: 5.391 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002476/0.9883, allocations: 0.5266 MB / 1.142 GB, free: 5.391 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005424/0.9938, allocations: 1.18 MB / 1.143 GB, free: 5.141 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.006589/1, allocations: 2.464 MB / 1.145 GB, free: 4.227 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.01038/1.011, allocations: 2.532 MB / 1.148 GB, free: 2.613 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01685/1.028, allocations: 8.526 MB / 1.156 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/1.028, allocations: 1.125 kB / 1.156 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.583e-06/1.028, allocations: 0 / 1.156 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003135/1.028, allocations: 0 / 1.156 GB, free: 14.3 MB / 0.9044 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.01612/1.044, allocations: 4.424 MB / 1.16 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/1.044, allocations: 9.781 kB / 1.16 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002636/1.047, allocations: 0.5751 MB / 1.161 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01039/1.057, allocations: 1.683 MB / 1.163 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009443/1.067, allocations: 2.695 MB / 1.165 GB, free: 8.316 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003949/1.067, allocations: 274.7 kB / 1.165 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00213/1.069, allocations: 364.4 kB / 1.166 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02084/1.09, allocations: 7.481 MB / 1.173 GB, free: 3.582 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001741/1.09, allocations: 17.89 kB / 1.173 GB, free: 3.57 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00147/1.092, allocations: 161.3 kB / 1.173 GB, free: 3.449 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007858/1.093, allocations: 482.5 kB / 1.174 GB, free: 3.301 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01307/1.106, allocations: 5.707 MB / 1.179 GB, free: 15.57 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04331/1.149, allocations: 31.5 MB / 1.21 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003263/1.152, allocations: 2.093 MB / 1.212 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003087/1.156, allocations: 2.178 MB / 1.214 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001867/1.156, allocations: 17.31 kB / 1.214 GB, free: 8.992 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/1.156, allocations: 43.88 kB / 1.214 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=146): time 4.659e-06/1.156, allocations: 0 / 1.214 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of matching and sorting (n=251): time 0.3219/1.478, allocations: 77.03 MB / 1.29 GB, free: 11.77 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/1.478, allocations: 81.34 kB / 1.29 GB, free: 11.68 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00337/1.481, allocations: 1.674 MB / 1.291 GB, free: 9.957 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0004786/1.482, allocations: 61.7 kB / 1.291 GB, free: 9.891 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001466/1.483, allocations: 1.743 MB / 1.293 GB, free: 8.125 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.001255/1.485, allocations: 0.8549 MB / 1.294 GB, free: 7.258 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001445/1.486, allocations: 481.2 kB / 1.294 GB, free: 6.781 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.486, allocations: 309 kB / 1.295 GB, free: 6.477 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004356/1.491, allocations: 2.734 MB / 1.297 GB, free: 3.738 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004758/1.495, allocations: 3.328 MB / 1.301 GB, free: 164 kB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008973/1.504, allocations: 6.393 MB / 1.307 GB, free: 9.523 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.057e-05/1.504, allocations: 4 kB / 1.307 GB, free: 9.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03387/1.538, allocations: 14.68 MB / 1.321 GB, free: 10.79 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/1.538, allocations: 15.94 kB / 1.321 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/1.538, allocations: 20 kB / 1.321 GB, free: 10.76 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03121/1.57, allocations: 9.244 MB / 1.33 GB, free: 1.488 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/1.571, allocations: 299.4 kB / 1.33 GB, free: 1.195 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08713/1.658, allocations: 52.33 MB / 1.382 GB, free: 11.98 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003491/1.662, allocations: 223.7 kB / 1.382 GB, free: 11.76 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006425/1.662, allocations: 100 kB / 1.382 GB, free: 11.66 MB / 1.123 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.004292/1.667, allocations: 1.587 MB / 1.383 GB, free: 10.06 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008915/1.668, allocations: 245.4 kB / 1.384 GB, free: 9.82 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03558/1.703, allocations: 14.76 MB / 1.398 GB, free: 11 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.12e-05/1.703, allocations: 24 kB / 1.398 GB, free: 10.98 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001643/1.703, allocations: 47.94 kB / 1.398 GB, free: 10.93 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-05/1.703, allocations: 11.95 kB / 1.398 GB, free: 10.92 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05032/1.754, allocations: 20.51 MB / 1.418 GB, free: 6.211 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.389e-05/1.754, allocations: 8 kB / 1.418 GB, free: 6.203 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008599/1.755, allocations: 164.6 kB / 1.418 GB, free: 6.043 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03427/1.789, allocations: 9.012 MB / 1.427 GB, free: 13 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005754/1.79, allocations: 51.98 kB / 1.427 GB, free: 12.95 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08668/1.876, allocations: 51.9 MB / 1.478 GB, free: 8.164 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/1.876, allocations: 11.94 kB / 1.478 GB, free: 8.152 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03443/1.911, allocations: 14.37 MB / 1.492 GB, free: 9.641 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003206/1.914, allocations: 0.8454 MB / 1.493 GB, free: 8.773 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/1.915, allocations: 48 kB / 1.493 GB, free: 8.727 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002833/1.918, allocations: 203.7 kB / 1.493 GB, free: 8.527 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00143/1.92, allocations: 245.5 kB / 1.493 GB, free: 8.289 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003748/1.92, allocations: 64 kB / 1.493 GB, free: 8.227 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.002049/1.922, allocations: 1.129 MB / 1.494 GB, free: 7.074 MB / 1.232 GB Notification: Performance of sort global known variables: time 1.7e-07/1.922, allocations: 4 kB / 1.494 GB, free: 7.07 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.00616/1.928, allocations: 1.609 MB / 1.496 GB, free: 5.461 MB / 1.232 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.03413/1.962, allocations: 14.99 MB / 1.511 GB, free: 6.32 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.02626/1.989, allocations: 10.55 MB / 1.521 GB, free: 11.7 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/1.989, allocations: 0 / 1.521 GB, free: 11.7 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.01903/2.008, allocations: 7.307 MB / 1.528 GB, free: 4.316 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004996/2.013, allocations: 0.5488 MB / 1.529 GB, free: 3.777 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6948/2.708, allocations: 50.83 MB / 1.578 GB, free: 436.5 MB / 1.311 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006027/2.714, allocations: 3.23 MB / 1.581 GB, free: 435.7 MB / 1.311 GB Notification: Performance of simCode: alias equations: time 0.001399/2.715, allocations: 386.7 kB / 1.582 GB, free: 435.7 MB / 1.311 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/2.717, allocations: 1.463 MB / 1.583 GB, free: 435.7 MB / 1.311 GB Notification: Performance of SimCode: time 9.31e-07/2.717, allocations: 0 / 1.583 GB, free: 435.7 MB / 1.311 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1889/2.905, allocations: 124 MB / 1.704 GB, free: 365.8 MB / 1.311 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.68/17.59, allocations: 7.25 kB / 1.704 GB, free: 365.8 MB / 1.311 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches