Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_R_N,fileNamePrefix="Buildings_latest_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_latest_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.006125/0.006125, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.001171/0.001171, allocations: 195.9 kB / 16.67 MB, free: 5.922 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.561/2.561, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 67.84 kB / 1.054 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.842/0.8435, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04003/0.8836, allocations: 37.96 MB / 1.244 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01818/0.9018, allocations: 10.98 MB / 1.255 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003996/0.9058, allocations: 151.3 kB / 1.255 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.9171, allocations: 4.359 MB / 1.259 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.007077/0.9242, allocations: 2.227 MB / 1.262 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.006477/0.9307, allocations: 2.17 MB / 1.264 GB, free: 3.547 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01214/0.9428, allocations: 9.28 MB / 1.273 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01537/0.9583, allocations: 11.27 MB / 1.284 GB, free: 14.85 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006887/0.9652, allocations: 4.051 MB / 1.288 GB, free: 10.79 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007144/0.9724, allocations: 4.51 MB / 1.292 GB, free: 6.262 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.002358/0.9748, allocations: 0.8242 MB / 1.293 GB, free: 5.438 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004304/0.9791, allocations: 1.588 MB / 1.295 GB, free: 3.848 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.004593/0.9838, allocations: 3.146 MB / 1.298 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.007023/0.9908, allocations: 3.665 MB / 1.301 GB, free: 13.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01464/1.005, allocations: 12.3 MB / 1.313 GB, free: 0.6758 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/1.006, allocations: 0 / 1.313 GB, free: 0.6758 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.254e-06/1.006, allocations: 0 / 1.313 GB, free: 0.6758 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0004278/1.006, allocations: 4 kB / 1.313 GB, free: 0.6719 MB / 1.029 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.01696/1.023, allocations: 6.33 MB / 1.319 GB, free: 10.27 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/1.023, allocations: 8.031 kB / 1.319 GB, free: 10.26 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002649/1.026, allocations: 0.8294 MB / 1.32 GB, free: 9.422 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006312/1.032, allocations: 1.059 MB / 1.321 GB, free: 8.355 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007545/1.04, allocations: 3.614 MB / 1.325 GB, free: 4.688 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003523/1.04, allocations: 427.7 kB / 1.325 GB, free: 4.27 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001826/1.042, allocations: 0.5393 MB / 1.326 GB, free: 3.73 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/1.061, allocations: 9.373 MB / 1.335 GB, free: 10.02 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001617/1.061, allocations: 15.88 kB / 1.335 GB, free: 10.01 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001089/1.062, allocations: 252 kB / 1.335 GB, free: 9.762 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005952/1.063, allocations: 426.9 kB / 1.336 GB, free: 9.344 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01406/1.077, allocations: 7.12 MB / 1.342 GB, free: 2.215 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04802/1.125, allocations: 40.99 MB / 1.383 GB, free: 5.48 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004684/1.13, allocations: 3.104 MB / 1.386 GB, free: 2.371 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002894/1.132, allocations: 2.16 MB / 1.388 GB, free: 212 kB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001369/1.133, allocations: 22 kB / 1.388 GB, free: 192 kB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.059e-05/1.133, allocations: 64.42 kB / 1.388 GB, free: 116 kB / 1.107 GB Notification: Performance of pre-optimization done (n=209): time 4.048e-06/1.133, allocations: 0 / 1.388 GB, free: 116 kB / 1.107 GB Notification: Performance of matching and sorting (n=212): time 0.02412/1.157, allocations: 10.57 MB / 1.398 GB, free: 5.449 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/1.157, allocations: 77.39 kB / 1.398 GB, free: 5.363 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002821/1.16, allocations: 2.002 MB / 1.4 GB, free: 3.344 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0002916/1.16, allocations: 69.7 kB / 1.4 GB, free: 3.27 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.001434/1.162, allocations: 2.396 MB / 1.403 GB, free: 0.8398 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006888/1.162, allocations: 0.7356 MB / 1.403 GB, free: 96 kB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007059/1.163, allocations: 477.2 kB / 1.404 GB, free: 15.62 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 9.606e-05/1.163, allocations: 309.1 kB / 1.404 GB, free: 15.31 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001803/1.165, allocations: 1.364 MB / 1.405 GB, free: 13.95 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002213/1.167, allocations: 2.116 MB / 1.407 GB, free: 11.51 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004394/1.171, allocations: 3.766 MB / 1.411 GB, free: 7.438 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-05/1.172, allocations: 4 kB / 1.411 GB, free: 7.434 MB / 1.139 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007935/1.179, allocations: 5.069 MB / 1.416 GB, free: 2.34 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/1.18, allocations: 16 kB / 1.416 GB, free: 2.324 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/1.18, allocations: 24 kB / 1.416 GB, free: 2.301 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003407/1.183, allocations: 1.586 MB / 1.418 GB, free: 0.707 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/1.185, allocations: 459.2 kB / 1.418 GB, free: 264 kB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02115/1.206, allocations: 18.55 MB / 1.436 GB, free: 13.15 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/1.208, allocations: 147.9 kB / 1.436 GB, free: 13 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003269/1.208, allocations: 108 kB / 1.436 GB, free: 12.9 MB / 1.17 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.003112/1.212, allocations: 1.945 MB / 1.438 GB, free: 10.94 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000619/1.212, allocations: 288.6 kB / 1.439 GB, free: 10.66 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006914/1.219, allocations: 4.455 MB / 1.443 GB, free: 6.168 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.159e-05/1.219, allocations: 20 kB / 1.443 GB, free: 6.148 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-05/1.219, allocations: 16 kB / 1.443 GB, free: 6.133 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.041e-05/1.219, allocations: 11.97 kB / 1.443 GB, free: 6.121 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01666/1.236, allocations: 9.675 MB / 1.452 GB, free: 12.3 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.779e-05/1.236, allocations: 4 kB / 1.452 GB, free: 12.29 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/1.237, allocations: 236.1 kB / 1.453 GB, free: 12.06 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003274/1.24, allocations: 1.426 MB / 1.454 GB, free: 10.63 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003095/1.241, allocations: 40 kB / 1.454 GB, free: 10.59 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02152/1.262, allocations: 18.56 MB / 1.472 GB, free: 7.461 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.262, allocations: 8 kB / 1.472 GB, free: 7.453 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007005/1.269, allocations: 4.548 MB / 1.477 GB, free: 2.816 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001522/1.271, allocations: 0.6304 MB / 1.477 GB, free: 2.164 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005488/1.271, allocations: 36.19 kB / 1.477 GB, free: 2.129 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/1.273, allocations: 119.9 kB / 1.477 GB, free: 2.012 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004772/1.273, allocations: 181.6 kB / 1.478 GB, free: 1.832 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/1.273, allocations: 60 kB / 1.478 GB, free: 1.773 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.001713/1.275, allocations: 1.315 MB / 1.479 GB, free: 460 kB / 1.201 GB Notification: Performance of sort global known variables: time 2.4e-07/1.275, allocations: 4 kB / 1.479 GB, free: 456 kB / 1.201 GB Notification: Performance of remove unused functions: time 0.00325/1.278, allocations: 1.137 MB / 1.48 GB, free: 15.3 MB / 1.217 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.006775/1.285, allocations: 5.159 MB / 1.485 GB, free: 10.05 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.007289/1.292, allocations: 4.724 MB / 1.49 GB, free: 5.281 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/1.292, allocations: 4 kB / 1.49 GB, free: 5.277 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.004611/1.297, allocations: 2.914 MB / 1.493 GB, free: 2.316 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00423/1.301, allocations: 0.8872 MB / 1.493 GB, free: 1.445 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05011/1.352, allocations: 30.38 MB / 1.523 GB, free: 1.871 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005534/1.357, allocations: 3.686 MB / 1.527 GB, free: 14.15 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.001932/1.359, allocations: 0.5596 MB / 1.527 GB, free: 13.59 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002504/1.362, allocations: 1.948 MB / 1.529 GB, free: 11.64 MB / 1.264 GB Notification: Performance of SimCode: time 8.21e-07/1.362, allocations: 0 / 1.529 GB, free: 11.64 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7911/2.153, allocations: 86.09 MB / 1.613 GB, free: 293.9 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/16.14, allocations: 7.469 kB / 1.613 GB, free: 293.9 MB / 1.279 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches