Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_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.001126/0.001126, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00122/0.00122, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.388/1.388, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.423/2.423, allocations: 390.2 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 63.91 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7359/0.7383, allocations: 140.4 MB / 0.9492 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.009887/0.7482, allocations: 10.05 MB / 0.9591 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005669/0.7539, allocations: 3.157 MB / 0.9621 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.755, allocations: 27.25 kB / 0.9622 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.7567, allocations: 0.5447 MB / 0.9627 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001905/0.7586, allocations: 0.6904 MB / 0.9634 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.7604, allocations: 0.6848 MB / 0.964 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00393/0.7644, allocations: 3.009 MB / 0.967 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004587/0.769, allocations: 3.076 MB / 0.97 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002582/0.7716, allocations: 1.266 MB / 0.9712 GB, free: 9.449 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002821/0.7744, allocations: 1.65 MB / 0.9728 GB, free: 8.516 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0004294/0.7749, allocations: 236.2 kB / 0.9731 GB, free: 8.516 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.7762, allocations: 0.5007 MB / 0.9735 GB, free: 8.371 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001156/0.7774, allocations: 1.076 MB / 0.9746 GB, free: 7.707 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001327/0.7787, allocations: 1.116 MB / 0.9757 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003425/0.7822, allocations: 3.685 MB / 0.9793 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.7822, allocations: 0 / 0.9793 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.953e-06/0.7822, allocations: 0 / 0.9793 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.959e-05/0.7823, allocations: 0 / 0.9793 GB, free: 3.18 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.003962/0.7862, allocations: 2.146 MB / 0.9814 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.7863, allocations: 11.97 kB / 0.9814 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003272/0.7866, allocations: 261.2 kB / 0.9816 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008388/0.795, allocations: 1.313 MB / 0.9829 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002699/0.7978, allocations: 1.255 MB / 0.9841 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.7979, allocations: 111.4 kB / 0.9843 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007433/0.7987, allocations: 152.3 kB / 0.9844 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007466/0.8062, allocations: 3.437 MB / 0.9878 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.305e-05/0.8062, allocations: 3.938 kB / 0.9878 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000487/0.8067, allocations: 71.95 kB / 0.9878 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000288/0.807, allocations: 199.1 kB / 0.988 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005849/0.8129, allocations: 3.128 MB / 0.9911 GB, free: 6.887 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02161/0.8345, allocations: 13.62 MB / 1.004 GB, free: 8.387 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/0.8373, allocations: 1.732 MB / 1.006 GB, free: 6.645 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/0.8393, allocations: 1.444 MB / 1.007 GB, free: 5.195 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.8394, allocations: 9 kB / 1.007 GB, free: 5.188 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/0.8395, allocations: 43.56 kB / 1.008 GB, free: 5.137 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=104): time 3.457e-06/0.8395, allocations: 0 / 1.008 GB, free: 5.137 MB / 0.7637 GB Notification: Performance of matching and sorting (n=183): time 0.1336/0.9731, allocations: 36.68 MB / 1.043 GB, free: 320 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.9732, allocations: 73.34 kB / 1.043 GB, free: 236 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.975, allocations: 1.05 MB / 1.044 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0003927/0.9754, allocations: 49.7 kB / 1.044 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005756/0.976, allocations: 0.7951 MB / 1.045 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.000795/0.9768, allocations: 0.62 MB / 1.046 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.9779, allocations: 371.3 kB / 1.046 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.978, allocations: 301.1 kB / 1.047 GB, free: 13 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002773/0.9808, allocations: 1.928 MB / 1.048 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003023/0.9838, allocations: 2.281 MB / 1.051 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00585/0.9897, allocations: 4.394 MB / 1.055 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.739e-05/0.9897, allocations: 4 kB / 1.055 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01985/1.01, allocations: 9.021 MB / 1.064 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.555e-05/1.01, allocations: 14.53 kB / 1.064 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/1.01, allocations: 12 kB / 1.064 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0171/1.027, allocations: 5.006 MB / 1.069 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000908/1.028, allocations: 191.7 kB / 1.069 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0567/1.084, allocations: 38.91 MB / 1.107 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001999/1.087, allocations: 103.9 kB / 1.107 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004419/1.087, allocations: 72 kB / 1.107 GB, free: 14.18 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * 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 {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001644/1.089, allocations: 0.8101 MB / 1.108 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000461/1.089, allocations: 142.3 kB / 1.108 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01918/1.108, allocations: 8.882 MB / 1.117 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/1.108, allocations: 16 kB / 1.117 GB, free: 4.289 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.344e-05/1.108, allocations: 28 kB / 1.117 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.795e-05/1.109, allocations: 15.95 kB / 1.117 GB, free: 4.246 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0266/1.135, allocations: 13.31 MB / 1.13 GB, free: 6.781 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.398e-05/1.135, allocations: 8 kB / 1.13 GB, free: 6.773 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004995/1.136, allocations: 119.8 kB / 1.13 GB, free: 6.656 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01637/1.152, allocations: 4.791 MB / 1.134 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003963/1.152, allocations: 36 kB / 1.134 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05213/1.205, allocations: 34.85 MB / 1.169 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.373e-06/1.205, allocations: 15.86 kB / 1.169 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/1.223, allocations: 8.4 MB / 1.177 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/1.225, allocations: 0.6163 MB / 1.177 GB, free: 5.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004765/1.225, allocations: 32 kB / 1.177 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/1.227, allocations: 87.89 kB / 1.177 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008682/1.228, allocations: 169.6 kB / 1.178 GB, free: 4.949 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/1.228, allocations: 44 kB / 1.178 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001086/1.229, allocations: 0.7382 MB / 1.178 GB, free: 4.156 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.81e-07/1.229, allocations: 0 / 1.178 GB, free: 4.156 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003196/1.232, allocations: 1.004 MB / 1.179 GB, free: 3.152 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * 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 {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (14,24,80.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01823/1.25, allocations: 8.992 MB / 1.188 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01069/1.261, allocations: 6.702 MB / 1.195 GB, free: 3.305 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.261, allocations: 0 / 1.195 GB, free: 3.305 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.007375/1.268, allocations: 3.837 MB / 1.198 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/1.27, allocations: 231 kB / 1.199 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05891/1.329, allocations: 32.51 MB / 1.23 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00214/1.331, allocations: 1.855 MB / 1.232 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009163/1.332, allocations: 355.4 kB / 1.233 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007922/1.333, allocations: 0.6047 MB / 1.233 GB, free: 10.94 MB / 0.9981 GB Notification: Performance of SimCode: time 1.412e-06/1.333, allocations: 8 kB / 1.233 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6692/2.002, allocations: 74.76 MB / 1.306 GB, free: 266.5 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/2.003, allocations: 250.7 kB / 1.306 GB, free: 266.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.706/4.709, allocations: 2.031 kB / 1.306 GB, free: 266.2 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches