Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.ACLineMatrix_RL_N,fileNamePrefix="Buildings_10_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_10_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.005713/0.005713, allocations: 101.3 kB / 15.73 MB, free: 6.035 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.001302/0.001302, allocations: 187.3 kB / 16.67 MB, free: 5.965 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.662/2.662, allocations: 437 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002225, allocations: 71.83 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3249, allocations: 151.6 MB / 1.166 GB, free: 7.277 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02768/0.3527, allocations: 23.41 MB / 1.189 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01301/0.3657, allocations: 6.492 MB / 1.195 GB, free: 9.262 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002203/0.368, allocations: 95.5 kB / 1.195 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004135/0.3722, allocations: 1.496 MB / 1.197 GB, free: 7.664 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.004573/0.3768, allocations: 1.937 MB / 1.199 GB, free: 5.719 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00365/0.3804, allocations: 1.457 MB / 1.2 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.007667/0.3881, allocations: 6.92 MB / 1.207 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00998/0.3981, allocations: 6.944 MB / 1.214 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004768/0.4029, allocations: 2.882 MB / 1.217 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005385/0.4084, allocations: 3.474 MB / 1.22 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001693/0.4101, allocations: 0.5273 MB / 1.221 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003397/0.4135, allocations: 1.182 MB / 1.222 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.003959/0.4175, allocations: 2.452 MB / 1.224 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.005663/0.4232, allocations: 2.536 MB / 1.227 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.435, allocations: 8.512 MB / 1.235 GB, free: 0.668 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 1.02e-05/0.435, allocations: 4 kB / 1.235 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.984e-06/0.435, allocations: 0 / 1.235 GB, free: 0.6641 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0002781/0.4353, allocations: 3.984 kB / 1.235 GB, free: 0.6602 MB / 0.9825 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.01134/0.4467, allocations: 4.435 MB / 1.239 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.4467, allocations: 11.97 kB / 1.239 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00197/0.4487, allocations: 0.5675 MB / 1.24 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009227/0.458, allocations: 1.685 MB / 1.241 GB, free: 9.875 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005806/0.4638, allocations: 2.692 MB / 1.244 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002646/0.4641, allocations: 275.7 kB / 1.244 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001462/0.4656, allocations: 356.3 kB / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6645/1.13, allocations: 7.483 MB / 1.252 GB, free: 71.48 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003069/1.13, allocations: 15.45 kB / 1.252 GB, free: 71.48 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001434/1.132, allocations: 158.1 kB / 1.252 GB, free: 71.48 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001151/1.133, allocations: 485.5 kB / 1.253 GB, free: 71.47 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02012/1.153, allocations: 5.701 MB / 1.258 GB, free: 70.27 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04868/1.202, allocations: 31.51 MB / 1.289 GB, free: 45.91 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003375/1.205, allocations: 2.084 MB / 1.291 GB, free: 45.12 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00354/1.209, allocations: 2.191 MB / 1.293 GB, free: 44.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002518/1.209, allocations: 15.62 kB / 1.293 GB, free: 44.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/1.209, allocations: 50.03 kB / 1.293 GB, free: 44.25 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=146): time 4.369e-06/1.209, allocations: 4 kB / 1.293 GB, free: 44.25 MB / 0.9981 GB Notification: Performance of matching and sorting (n=251): time 0.2918/1.501, allocations: 77.02 MB / 1.368 GB, free: 7.391 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/1.501, allocations: 77.41 kB / 1.368 GB, free: 7.301 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004308/1.505, allocations: 1.674 MB / 1.37 GB, free: 5.582 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0008689/1.506, allocations: 69.64 kB / 1.37 GB, free: 5.508 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.00184/1.508, allocations: 1.747 MB / 1.372 GB, free: 3.746 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.001831/1.51, allocations: 0.8452 MB / 1.373 GB, free: 2.906 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00283/1.513, allocations: 489.2 kB / 1.373 GB, free: 2.422 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001627/1.513, allocations: 301.1 kB / 1.373 GB, free: 2.125 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006049/1.519, allocations: 2.732 MB / 1.376 GB, free: 15.39 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006855/1.526, allocations: 3.332 MB / 1.379 GB, free: 11.81 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/1.537, allocations: 6.389 MB / 1.386 GB, free: 5.184 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.571e-05/1.537, allocations: 8 kB / 1.386 GB, free: 5.176 MB / 1.029 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03409/1.571, allocations: 14.67 MB / 1.4 GB, free: 6.453 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.453e-05/1.571, allocations: 15.94 kB / 1.4 GB, free: 6.438 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.661e-05/1.571, allocations: 23.94 kB / 1.4 GB, free: 6.414 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03024/1.602, allocations: 9.244 MB / 1.409 GB, free: 13.14 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/1.603, allocations: 299.4 kB / 1.409 GB, free: 12.85 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08243/1.685, allocations: 52.34 MB / 1.46 GB, free: 7.672 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002779/1.688, allocations: 223.7 kB / 1.461 GB, free: 7.453 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005397/1.689, allocations: 100 kB / 1.461 GB, free: 7.355 MB / 1.107 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.002967/1.692, allocations: 1.59 MB / 1.462 GB, free: 5.754 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007382/1.692, allocations: 241.1 kB / 1.462 GB, free: 5.516 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0331/1.726, allocations: 14.75 MB / 1.477 GB, free: 6.703 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.235e-05/1.726, allocations: 24 kB / 1.477 GB, free: 6.68 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000167/1.726, allocations: 44 kB / 1.477 GB, free: 6.637 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.445e-05/1.726, allocations: 11.95 kB / 1.477 GB, free: 6.625 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04497/1.771, allocations: 20.53 MB / 1.497 GB, free: 1.934 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.167e-05/1.771, allocations: 14.38 kB / 1.497 GB, free: 1.922 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000918/1.772, allocations: 159.8 kB / 1.497 GB, free: 1.766 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02896/1.801, allocations: 9.006 MB / 1.506 GB, free: 8.734 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006786/1.802, allocations: 48 kB / 1.506 GB, free: 8.688 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08317/1.885, allocations: 51.91 MB / 1.557 GB, free: 3.887 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/1.885, allocations: 11.92 kB / 1.557 GB, free: 3.875 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03303/1.918, allocations: 14.37 MB / 1.571 GB, free: 5.359 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/1.92, allocations: 0.8416 MB / 1.572 GB, free: 4.496 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009491/1.921, allocations: 55.98 kB / 1.572 GB, free: 4.441 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002552/1.924, allocations: 203.7 kB / 1.572 GB, free: 4.242 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001561/1.925, allocations: 241.5 kB / 1.572 GB, free: 4.004 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004161/1.926, allocations: 64 kB / 1.572 GB, free: 3.941 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.002039/1.928, allocations: 1.133 MB / 1.573 GB, free: 2.785 MB / 1.217 GB Notification: Performance of sort global known variables: time 3.4e-07/1.928, allocations: 0 / 1.573 GB, free: 2.785 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.005827/1.934, allocations: 1.609 MB / 1.575 GB, free: 1.176 MB / 1.217 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.03171/1.965, allocations: 14.97 MB / 1.589 GB, free: 2.051 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.0239/1.989, allocations: 10.56 MB / 1.6 GB, free: 7.434 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/1.989, allocations: 0.875 kB / 1.6 GB, free: 7.434 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.02033/2.01, allocations: 7.315 MB / 1.607 GB, free: 48 kB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004559/2.014, allocations: 0.5708 MB / 1.607 GB, free: 15.49 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1125/2.127, allocations: 50.81 MB / 1.657 GB, free: 11.62 MB / 1.311 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00549/2.132, allocations: 3.226 MB / 1.66 GB, free: 8.367 MB / 1.311 GB Notification: Performance of simCode: alias equations: time 0.001407/2.134, allocations: 387.3 kB / 1.661 GB, free: 7.984 MB / 1.311 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002491/2.136, allocations: 1.464 MB / 1.662 GB, free: 6.52 MB / 1.311 GB Notification: Performance of SimCode: time 2.104e-06/2.136, allocations: 0 / 1.662 GB, free: 6.52 MB / 1.311 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.225/2.361, allocations: 120.8 MB / 1.78 GB, free: 14.18 MB / 1.436 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/16.79, allocations: 11 kB / 1.78 GB, free: 14.17 MB / 1.436 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches