Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.ACLine_R_N,fileNamePrefix="Buildings_9_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_9_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.001235/0.001235, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001271/0.001271, allocations: 196.8 kB / 16.14 MB, free: 6.719 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.202/1.202, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.093/2.093, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.84 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4977/0.4989, allocations: 140.4 MB / 0.9491 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03284/0.5318, allocations: 37.61 MB / 0.9858 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01537/0.5472, allocations: 10.95 MB / 0.9965 GB, free: 1.555 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.5492, allocations: 139.2 kB / 0.9966 GB, free: 1.418 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.008038/0.5573, allocations: 4.087 MB / 1.001 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.003784/0.5611, allocations: 2.084 MB / 1.003 GB, free: 11.23 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.003603/0.5647, allocations: 1.965 MB / 1.005 GB, free: 9.27 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01016/0.5749, allocations: 13.19 MB / 1.017 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01409/0.589, allocations: 12.45 MB / 1.03 GB, free: 15.49 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003956/0.5929, allocations: 3.406 MB / 1.033 GB, free: 12.07 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004156/0.5971, allocations: 4.592 MB / 1.037 GB, free: 7.465 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0007515/0.5979, allocations: 0.5625 MB / 1.038 GB, free: 6.902 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.6003, allocations: 1.549 MB / 1.039 GB, free: 5.352 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.00213/0.6024, allocations: 2.888 MB / 1.042 GB, free: 2.457 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002797/0.6052, allocations: 3.36 MB / 1.046 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.007845/0.6131, allocations: 12.08 MB / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.6131, allocations: 0 / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.82e-07/0.6131, allocations: 4 kB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001138/0.6132, allocations: 0 / 1.057 GB, free: 2.965 MB / 0.8106 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.009/0.6222, allocations: 6.318 MB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.6223, allocations: 12.03 kB / 1.064 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008991/0.6232, allocations: 0.8216 MB / 1.064 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0042/0.6274, allocations: 1.071 MB / 1.065 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004527/0.6319, allocations: 3.423 MB / 1.069 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002814/0.6322, allocations: 419.8 kB / 1.069 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007719/0.633, allocations: 0.5471 MB / 1.07 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01328/0.6463, allocations: 9.381 MB / 1.079 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.619e-05/0.6464, allocations: 19.81 kB / 1.079 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005094/0.6469, allocations: 252 kB / 1.079 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005132/0.6474, allocations: 422.8 kB / 1.079 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01006/0.6575, allocations: 7.123 MB / 1.086 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03557/0.6931, allocations: 41.31 MB / 1.127 GB, free: 7.641 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003897/0.697, allocations: 3.096 MB / 1.13 GB, free: 4.531 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002483/0.6995, allocations: 2.137 MB / 1.132 GB, free: 2.395 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.6997, allocations: 26 kB / 1.132 GB, free: 2.371 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.6997, allocations: 56.56 kB / 1.132 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=209): time 3.557e-06/0.6997, allocations: 0 / 1.132 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of matching and sorting (n=212): time 0.02124/0.721, allocations: 10.57 MB / 1.142 GB, free: 7.641 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.721, allocations: 73.41 kB / 1.142 GB, free: 7.559 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00229/0.7233, allocations: 2.002 MB / 1.144 GB, free: 5.539 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001183/0.7235, allocations: 61.7 kB / 1.144 GB, free: 5.473 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.7248, allocations: 2.4 MB / 1.147 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000663/0.7254, allocations: 0.7356 MB / 1.147 GB, free: 2.293 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006698/0.7261, allocations: 485.2 kB / 1.148 GB, free: 1.812 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 8.689e-05/0.7262, allocations: 301.1 kB / 1.148 GB, free: 1.516 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001763/0.728, allocations: 1.376 MB / 1.15 GB, free: 140 kB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002241/0.7302, allocations: 2.104 MB / 1.152 GB, free: 13.71 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004235/0.7345, allocations: 3.766 MB / 1.155 GB, free: 9.629 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.7345, allocations: 4 kB / 1.155 GB, free: 9.625 MB / 0.92 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007132/0.7416, allocations: 5.061 MB / 1.16 GB, free: 4.539 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.7417, allocations: 17.75 kB / 1.16 GB, free: 4.523 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/0.7417, allocations: 24 kB / 1.16 GB, free: 4.5 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003249/0.7449, allocations: 1.583 MB / 1.162 GB, free: 2.906 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.7464, allocations: 455.2 kB / 1.162 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01962/0.766, allocations: 17.07 MB / 1.179 GB, free: 0.8672 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.7679, allocations: 147.9 kB / 1.179 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/0.7681, allocations: 108 kB / 1.179 GB, free: 0.6172 MB / 0.9356 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.00267/0.7707, allocations: 1.943 MB / 1.181 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003891/0.7711, allocations: 296.5 kB / 1.181 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0063/0.7774, allocations: 4.451 MB / 1.186 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.7775, allocations: 20 kB / 1.186 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/0.7775, allocations: 20 kB / 1.186 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.7775, allocations: 7.969 kB / 1.186 GB, free: 9.844 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.7901, allocations: 9.66 MB / 1.195 GB, free: 36 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.7901, allocations: 4 kB / 1.195 GB, free: 32 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009142/0.791, allocations: 248 kB / 1.195 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003011/0.794, allocations: 1.429 MB / 1.197 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.7942, allocations: 44 kB / 1.197 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01871/0.8129, allocations: 17.07 MB / 1.214 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.8129, allocations: 7.938 kB / 1.214 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006632/0.8196, allocations: 4.541 MB / 1.218 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/0.8207, allocations: 0.6264 MB / 1.219 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003283/0.8211, allocations: 43.98 kB / 1.219 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.8222, allocations: 115.9 kB / 1.219 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004486/0.8226, allocations: 177.6 kB / 1.219 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.8227, allocations: 67.98 kB / 1.219 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001572/0.8243, allocations: 1.311 MB / 1.22 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8243, allocations: 0 / 1.22 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002625/0.827, allocations: 1.145 MB / 1.221 GB, free: 4.559 MB / 0.9825 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.006262/0.8332, allocations: 5.152 MB / 1.226 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006234/0.8395, allocations: 4.692 MB / 1.231 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.8395, allocations: 0 / 1.231 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003889/0.8434, allocations: 2.918 MB / 1.234 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/0.8465, allocations: 0.8326 MB / 1.235 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4038/1.25, allocations: 35.91 MB / 1.27 GB, free: 278 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003222/1.253, allocations: 3.691 MB / 1.273 GB, free: 276.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001748/1.255, allocations: 0.5552 MB / 1.274 GB, free: 276.6 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/1.257, allocations: 1.95 MB / 1.276 GB, free: 275 MB / 1.014 GB Notification: Performance of SimCode: time 8.42e-07/1.257, allocations: 0 / 1.276 GB, free: 275 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.221/2.478, allocations: 83.7 MB / 1.357 GB, free: 209.8 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002362/2.479, allocations: 252.1 kB / 1.358 GB, free: 209.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.501/5.98, allocations: 0 / 1.358 GB, free: 209.5 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches