Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",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.0008588/0.0008588, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005449/0.005449, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.237/1.237, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.317/2.317, allocations: 437.8 MB / 0.7121 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002828, allocations: 8 kB / 0.873 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5217/0.522, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.02927/0.5513, allocations: 29.74 MB / 1.052 GB, free: 1.977 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01854/0.5699, allocations: 13.4 MB / 1.065 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003028/0.5729, allocations: 127.2 kB / 1.065 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002026/0.575, allocations: 0.6551 MB / 1.066 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.006142/0.5811, allocations: 2.469 MB / 1.068 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003784/0.5849, allocations: 1.715 MB / 1.07 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.009649/0.5946, allocations: 10.43 MB / 1.08 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01323/0.6078, allocations: 10.17 MB / 1.09 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003606/0.6115, allocations: 2.591 MB / 1.093 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003951/0.6154, allocations: 2.938 MB / 1.096 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0007691/0.6162, allocations: 244 kB / 1.096 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002709/0.6189, allocations: 1.38 MB / 1.097 GB, free: 3.652 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001964/0.6209, allocations: 1.921 MB / 1.099 GB, free: 1.727 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.6231, allocations: 2.388 MB / 1.101 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.006528/0.6296, allocations: 9.013 MB / 1.11 GB, free: 6.277 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6296, allocations: 0 / 1.11 GB, free: 6.277 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6296, allocations: 4 kB / 1.11 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.179e-05/0.6297, allocations: 0 / 1.11 GB, free: 6.273 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.006257/0.636, allocations: 4.158 MB / 1.114 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.636, allocations: 12.03 kB / 1.114 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000709/0.6367, allocations: 0.6203 MB / 1.115 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0048/0.6415, allocations: 0.9981 MB / 1.116 GB, free: 400 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003932/0.6455, allocations: 2.896 MB / 1.119 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/0.6457, allocations: 320.8 kB / 1.119 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005677/0.6463, allocations: 415.9 kB / 1.119 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008669/0.6549, allocations: 6.791 MB / 1.126 GB, free: 5.609 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.701e-05/0.655, allocations: 19.78 kB / 1.126 GB, free: 5.59 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003842/0.6554, allocations: 184 kB / 1.126 GB, free: 5.41 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007711/0.6562, allocations: 372 kB / 1.127 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006817/0.663, allocations: 5.118 MB / 1.132 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02494/0.688, allocations: 30.79 MB / 1.162 GB, free: 14.35 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.6897, allocations: 1.387 MB / 1.163 GB, free: 12.95 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.6913, allocations: 1.328 MB / 1.164 GB, free: 11.62 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 7.403e-05/0.6913, allocations: 13.31 kB / 1.164 GB, free: 11.61 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.6914, allocations: 51.88 kB / 1.164 GB, free: 11.55 MB / 0.92 GB Notification: Performance of pre-optimization done (n=130): time 2.715e-06/0.6914, allocations: 0 / 1.164 GB, free: 11.55 MB / 0.92 GB Notification: Performance of matching and sorting (n=199): time 0.08409/0.7755, allocations: 22.8 MB / 1.187 GB, free: 4.621 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.7756, allocations: 73.41 kB / 1.187 GB, free: 4.539 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00287/0.7784, allocations: 2.07 MB / 1.189 GB, free: 2.453 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.7786, allocations: 57.7 kB / 1.189 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.7798, allocations: 2.006 MB / 1.191 GB, free: 368 kB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005342/0.7804, allocations: 0.6738 MB / 1.191 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002844/0.7806, allocations: 182.3 kB / 1.192 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.158e-05/0.7807, allocations: 313.1 kB / 1.192 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/0.7827, allocations: 1.433 MB / 1.193 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002319/0.7851, allocations: 2.006 MB / 1.195 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004448/0.7895, allocations: 3.692 MB / 1.199 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.7895, allocations: 11.94 kB / 1.199 GB, free: 7.551 MB / 0.9512 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01031/0.7999, allocations: 5.66 MB / 1.204 GB, free: 1.82 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.7999, allocations: 15 kB / 1.204 GB, free: 1.809 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/0.7999, allocations: 20 kB / 1.204 GB, free: 1.789 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006254/0.8062, allocations: 2.079 MB / 1.206 GB, free: 15.65 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.8076, allocations: 375.4 kB / 1.207 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03502/0.8426, allocations: 35.55 MB / 1.242 GB, free: 9.328 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/0.845, allocations: 135.8 kB / 1.242 GB, free: 9.195 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002946/0.8453, allocations: 88 kB / 1.242 GB, free: 9.109 MB / 0.9981 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002599/0.8479, allocations: 1.517 MB / 1.243 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005584/0.8484, allocations: 284.7 kB / 1.243 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/0.8586, allocations: 5.219 MB / 1.249 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.8586, allocations: 20 kB / 1.249 GB, free: 1.984 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.533e-05/0.8587, allocations: 20 kB / 1.249 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/0.8587, allocations: 11.91 kB / 1.249 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4137/1.272, allocations: 9.666 MB / 1.258 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/1.272, allocations: 6 kB / 1.258 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008089/1.273, allocations: 215.1 kB / 1.258 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005419/1.279, allocations: 1.844 MB / 1.26 GB, free: 204.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/1.279, allocations: 39.47 kB / 1.26 GB, free: 204.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02708/1.306, allocations: 34.56 MB / 1.294 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.306, allocations: 6.875 kB / 1.294 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007314/1.313, allocations: 4.913 MB / 1.299 GB, free: 173.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000992/1.314, allocations: 0.6275 MB / 1.299 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003919/1.315, allocations: 47.33 kB / 1.299 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/1.316, allocations: 120.9 kB / 1.299 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003919/1.316, allocations: 191.1 kB / 1.3 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/1.316, allocations: 59.62 kB / 1.3 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001528/1.318, allocations: 1.377 MB / 1.301 GB, free: 173 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/1.318, allocations: 3.656 kB / 1.301 GB, free: 173 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002568/1.321, allocations: 1.048 MB / 1.302 GB, free: 172.9 MB / 0.9981 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007083/1.328, allocations: 5.527 MB / 1.307 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007136/1.335, allocations: 6.274 MB / 1.314 GB, free: 166.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.335, allocations: 0 / 1.314 GB, free: 166.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004678/1.34, allocations: 4.408 MB / 1.318 GB, free: 163.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005073/1.345, allocations: 0.9055 MB / 1.319 GB, free: 163.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04242/1.387, allocations: 35.97 MB / 1.354 GB, free: 126.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003268/1.39, allocations: 3.119 MB / 1.357 GB, free: 123.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001622/1.392, allocations: 0.5198 MB / 1.357 GB, free: 122.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/1.393, allocations: 1.667 MB / 1.359 GB, free: 120.9 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/1.393, allocations: 0 / 1.359 GB, free: 120.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.35/4.744, allocations: 85.71 MB / 1.443 GB, free: 36.29 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001398/4.744, allocations: 247.6 kB / 1.443 GB, free: 36.03 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.348/8.092, allocations: 3.094 kB / 1.443 GB, free: 36.03 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches