Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.ACLine_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_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.005427/0.005427, allocations: 101.1 kB / 15.73 MB, free: 6.062 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.001426/0.001426, allocations: 189.8 kB / 16.67 MB, free: 5.973 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.79/2.79, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 71.83 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2883, allocations: 162.3 MB / 1.242 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.5806/0.8689, allocations: 33.32 MB / 1.274 GB, free: 13.65 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02535/0.8943, allocations: 14.83 MB / 1.289 GB, free: 3.398 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005022/0.8994, allocations: 157.3 kB / 1.289 GB, free: 3.348 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.01031/0.9098, allocations: 3.646 MB / 1.293 GB, free: 1.152 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.01021/0.92, allocations: 2.895 MB / 1.295 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00709/0.9271, allocations: 2.328 MB / 1.298 GB, free: 14.08 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.01354/0.9407, allocations: 8.809 MB / 1.306 GB, free: 10.13 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01367/0.9543, allocations: 9.577 MB / 1.316 GB, free: 6.203 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008996/0.9634, allocations: 3.957 MB / 1.32 GB, free: 4.484 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009438/0.9729, allocations: 4.044 MB / 1.323 GB, free: 2.707 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.003404/0.9763, allocations: 0.7162 MB / 1.324 GB, free: 2.707 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007381/0.9837, allocations: 1.715 MB / 1.326 GB, free: 2.309 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.006933/0.9906, allocations: 2.826 MB / 1.329 GB, free: 1.121 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0108/1.001, allocations: 3.392 MB / 1.332 GB, free: 14.97 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0204/1.022, allocations: 11.22 MB / 1.343 GB, free: 8.613 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/1.022, allocations: 0 / 1.343 GB, free: 8.613 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.272e-06/1.022, allocations: 5.375 kB / 1.343 GB, free: 8.609 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.000393/1.022, allocations: 0 / 1.343 GB, free: 8.609 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01866/1.041, allocations: 6.124 MB / 1.349 GB, free: 4.48 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/1.041, allocations: 9.25 kB / 1.349 GB, free: 4.48 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002174/1.043, allocations: 0.7277 MB / 1.35 GB, free: 3.961 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007223/1.05, allocations: 1.164 MB / 1.351 GB, free: 3.406 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008045/1.059, allocations: 3.541 MB / 1.354 GB, free: 1.07 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003161/1.059, allocations: 370.8 kB / 1.355 GB, free: 0.9023 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/1.06, allocations: 0.5009 MB / 1.355 GB, free: 0.7188 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01505/1.075, allocations: 8.004 MB / 1.363 GB, free: 11.84 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001246/1.075, allocations: 24.12 kB / 1.363 GB, free: 11.82 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005593/1.076, allocations: 214.8 kB / 1.363 GB, free: 11.66 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001055/1.077, allocations: 436.5 kB / 1.363 GB, free: 11.49 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/1.088, allocations: 6.085 MB / 1.369 GB, free: 5.395 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04351/1.131, allocations: 34.96 MB / 1.404 GB, free: 15.26 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/1.134, allocations: 2.022 MB / 1.406 GB, free: 13.23 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002512/1.137, allocations: 1.865 MB / 1.407 GB, free: 11.37 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001242/1.137, allocations: 21.94 kB / 1.407 GB, free: 11.35 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/1.137, allocations: 64.5 kB / 1.407 GB, free: 11.28 MB / 1.107 GB Notification: Performance of pre-optimization done (n=171): time 3.226e-06/1.137, allocations: 0 / 1.407 GB, free: 11.28 MB / 1.107 GB Notification: Performance of matching and sorting (n=276): time 0.1533/1.29, allocations: 38.97 MB / 1.445 GB, free: 4.215 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/1.29, allocations: 77.58 kB / 1.446 GB, free: 4.125 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003231/1.293, allocations: 2.278 MB / 1.448 GB, free: 1.832 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 0.0002394/1.294, allocations: 73.7 kB / 1.448 GB, free: 1.754 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.001708/1.295, allocations: 2.342 MB / 1.45 GB, free: 15.39 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008742/1.296, allocations: 0.9837 MB / 1.451 GB, free: 14.39 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009526/1.297, allocations: 0.5142 MB / 1.452 GB, free: 13.87 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001156/1.297, allocations: 305.1 kB / 1.452 GB, free: 13.57 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002916/1.3, allocations: 1.973 MB / 1.454 GB, free: 11.59 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003419/1.304, allocations: 2.602 MB / 1.456 GB, free: 8.746 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006712/1.31, allocations: 4.925 MB / 1.461 GB, free: 3.547 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/1.31, allocations: 8 kB / 1.461 GB, free: 3.539 MB / 1.154 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01463/1.325, allocations: 7.779 MB / 1.469 GB, free: 11.69 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/1.325, allocations: 12 kB / 1.469 GB, free: 11.68 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/1.325, allocations: 16 kB / 1.469 GB, free: 11.66 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00929/1.334, allocations: 3.208 MB / 1.472 GB, free: 8.438 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/1.336, allocations: 407.2 kB / 1.472 GB, free: 8.039 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04558/1.382, allocations: 33.91 MB / 1.505 GB, free: 5.281 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003019/1.385, allocations: 163.8 kB / 1.506 GB, free: 5.121 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002687/1.385, allocations: 108 kB / 1.506 GB, free: 5.016 MB / 1.201 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 (202): * Single equations (assignments): 196 * 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 {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003183/1.388, allocations: 1.798 MB / 1.507 GB, free: 3.207 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006297/1.389, allocations: 349.8 kB / 1.508 GB, free: 2.863 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/1.403, allocations: 7.364 MB / 1.515 GB, free: 11.42 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-05/1.403, allocations: 28 kB / 1.515 GB, free: 11.39 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.468e-05/1.403, allocations: 32.25 kB / 1.515 GB, free: 11.36 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-05/1.403, allocations: 11.95 kB / 1.515 GB, free: 11.35 MB / 1.217 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0223/1.425, allocations: 12.92 MB / 1.528 GB, free: 14.25 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/1.425, allocations: 8.375 kB / 1.528 GB, free: 14.25 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009137/1.426, allocations: 235.7 kB / 1.528 GB, free: 14.02 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008107/1.434, allocations: 2.848 MB / 1.531 GB, free: 11.15 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002235/1.434, allocations: 52 kB / 1.531 GB, free: 11.1 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04379/1.478, allocations: 32.7 MB / 1.563 GB, free: 9.539 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.074e-06/1.478, allocations: 8 kB / 1.563 GB, free: 9.531 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01254/1.491, allocations: 6.9 MB / 1.569 GB, free: 2.418 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.493, allocations: 0.7956 MB / 1.57 GB, free: 1.602 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004059/1.493, allocations: 48 kB / 1.57 GB, free: 1.555 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/1.495, allocations: 175.7 kB / 1.57 GB, free: 1.383 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007612/1.495, allocations: 253.5 kB / 1.571 GB, free: 1.133 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/1.496, allocations: 76 kB / 1.571 GB, free: 1.059 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.002093/1.498, allocations: 1.521 MB / 1.572 GB, free: 15.54 MB / 1.279 GB Notification: Performance of sort global known variables: time 1.4e-07/1.498, allocations: 0 / 1.572 GB, free: 15.54 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.00349/1.501, allocations: 1.371 MB / 1.574 GB, free: 14.16 MB / 1.279 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 (105): * Single equations (assignments): 99 * 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 {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01228/1.513, allocations: 7.533 MB / 1.581 GB, free: 6.41 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01125/1.525, allocations: 6.958 MB / 1.588 GB, free: 15.36 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/1.525, allocations: 4.875 kB / 1.588 GB, free: 15.36 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.007359/1.532, allocations: 4.417 MB / 1.592 GB, free: 10.86 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004389/1.537, allocations: 1.12 MB / 1.593 GB, free: 9.773 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0641/1.601, allocations: 39.19 MB / 1.631 GB, free: 1.469 MB / 1.326 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004175/1.605, allocations: 3.643 MB / 1.635 GB, free: 13.79 MB / 1.342 GB Notification: Performance of simCode: alias equations: time 0.001833/1.607, allocations: 0.5595 MB / 1.635 GB, free: 13.23 MB / 1.342 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002247/1.609, allocations: 1.972 MB / 1.637 GB, free: 11.26 MB / 1.342 GB Notification: Performance of SimCode: time 9.01e-07/1.609, allocations: 4 kB / 1.637 GB, free: 11.25 MB / 1.342 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.58/4.189, allocations: 111.6 MB / 1.746 GB, free: 12.89 MB / 1.451 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.68/34.87, allocations: 7.922 kB / 1.746 GB, free: 12.89 MB / 1.451 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches