Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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 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_RLC_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_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.007513/0.007513, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.00177/0.001771, allocations: 198.4 kB / 16.68 MB, free: 5.926 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.261/1.261, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.536/2.536, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.91 kB / 1.054 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2814, allocations: 157.4 MB / 1.207 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04118/0.3226, allocations: 41.19 MB / 1.248 GB, free: 0.75 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6217/0.9443, allocations: 15.06 MB / 1.262 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004562/0.9489, allocations: 193 kB / 1.262 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.01091/0.96, allocations: 4.452 MB / 1.267 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.009435/0.9694, allocations: 2.795 MB / 1.269 GB, free: 10.15 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.008975/0.9784, allocations: 3.159 MB / 1.273 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01783/0.9963, allocations: 11.42 MB / 1.284 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02169/1.018, allocations: 12.46 MB / 1.296 GB, free: 1.219 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01241/1.03, allocations: 4.976 MB / 1.301 GB, free: 15.53 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01352/1.044, allocations: 5.388 MB / 1.306 GB, free: 13.61 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.005047/1.049, allocations: 0.9533 MB / 1.307 GB, free: 13.61 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009126/1.058, allocations: 2.037 MB / 1.309 GB, free: 13.35 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.008652/1.067, allocations: 3.686 MB / 1.313 GB, free: 11.87 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.01385/1.081, allocations: 4.298 MB / 1.317 GB, free: 9.172 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.02407/1.105, allocations: 14.28 MB / 1.331 GB, free: 1.148 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.433e-06/1.105, allocations: 0 / 1.331 GB, free: 1.148 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.733e-06/1.105, allocations: 4 kB / 1.331 GB, free: 1.145 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0004694/1.106, allocations: 1.125 kB / 1.331 GB, free: 1.145 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02951/1.135, allocations: 7.605 MB / 1.338 GB, free: 12.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/1.135, allocations: 10.06 kB / 1.338 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004019/1.139, allocations: 0.896 MB / 1.339 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01202/1.151, allocations: 1.52 MB / 1.34 GB, free: 10.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01236/1.164, allocations: 4.447 MB / 1.345 GB, free: 8.129 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004482/1.164, allocations: 452.6 kB / 1.345 GB, free: 7.938 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003098/1.167, allocations: 0.5986 MB / 1.346 GB, free: 7.746 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02687/1.194, allocations: 10.68 MB / 1.356 GB, free: 14.54 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003356/1.194, allocations: 31.77 kB / 1.356 GB, free: 14.5 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002822/1.197, allocations: 262 kB / 1.357 GB, free: 14.27 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003234/1.201, allocations: 0.7729 MB / 1.357 GB, free: 13.49 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02083/1.221, allocations: 8.561 MB / 1.366 GB, free: 4.906 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06717/1.289, allocations: 46.54 MB / 1.411 GB, free: 2.859 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006746/1.295, allocations: 4.319 MB / 1.415 GB, free: 14.55 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006077/1.302, allocations: 3.723 MB / 1.419 GB, free: 10.82 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005083/1.302, allocations: 34.78 kB / 1.419 GB, free: 10.79 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.105e-05/1.302, allocations: 73.34 kB / 1.419 GB, free: 10.71 MB / 1.107 GB Notification: Performance of pre-optimization done (n=353): time 7.754e-06/1.302, allocations: 3.984 kB / 1.419 GB, free: 10.7 MB / 1.107 GB Notification: Performance of matching and sorting (n=578): time 0.5126/1.815, allocations: 122.8 MB / 1.539 GB, free: 15.17 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/1.815, allocations: 119.9 kB / 1.539 GB, free: 15.04 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004166/1.819, allocations: 2.677 MB / 1.542 GB, free: 12.36 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.001092/1.82, allocations: 121.7 kB / 1.542 GB, free: 12.23 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001697/1.822, allocations: 2.678 MB / 1.544 GB, free: 9.535 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002452/1.824, allocations: 1.948 MB / 1.546 GB, free: 7.602 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003156/1.828, allocations: 0.9248 MB / 1.547 GB, free: 6.668 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001476/1.828, allocations: 301.1 kB / 1.548 GB, free: 6.371 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00638/1.834, allocations: 4.087 MB / 1.552 GB, free: 2.277 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007175/1.841, allocations: 5.009 MB / 1.556 GB, free: 12.95 MB / 1.248 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01403/1.855, allocations: 9.856 MB / 1.566 GB, free: 2.719 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.606e-05/1.855, allocations: 8 kB / 1.566 GB, free: 2.711 MB / 1.248 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04041/1.896, allocations: 17 MB / 1.583 GB, free: 1.586 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/1.896, allocations: 12 kB / 1.583 GB, free: 1.574 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.006e-05/1.896, allocations: 27.98 kB / 1.583 GB, free: 1.547 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03256/1.928, allocations: 9.085 MB / 1.592 GB, free: 8.418 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/1.931, allocations: 0.5226 MB / 1.592 GB, free: 7.895 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1131/2.044, allocations: 76.95 MB / 1.667 GB, free: 9.406 MB / 1.357 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005796/2.05, allocations: 283.8 kB / 1.667 GB, free: 9.129 MB / 1.357 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00133/2.051, allocations: 191.9 kB / 1.668 GB, free: 8.941 MB / 1.357 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005652/2.057, allocations: 2.421 MB / 1.67 GB, free: 6.508 MB / 1.357 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001621/2.059, allocations: 474.5 kB / 1.67 GB, free: 6.039 MB / 1.357 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04144/2.1, allocations: 16.82 MB / 1.687 GB, free: 5.07 MB / 1.373 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.117e-05/2.1, allocations: 56 kB / 1.687 GB, free: 5.016 MB / 1.373 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002339/2.101, allocations: 72 kB / 1.687 GB, free: 4.945 MB / 1.373 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/2.101, allocations: 28.02 kB / 1.687 GB, free: 4.918 MB / 1.373 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0648/2.165, allocations: 25.65 MB / 1.712 GB, free: 11.04 MB / 1.404 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.895e-05/2.166, allocations: 12.92 kB / 1.712 GB, free: 11.02 MB / 1.404 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002014/2.168, allocations: 315.5 kB / 1.712 GB, free: 10.71 MB / 1.404 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02996/2.198, allocations: 8.268 MB / 1.72 GB, free: 2.398 MB / 1.404 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001151/2.199, allocations: 112 kB / 1.721 GB, free: 2.289 MB / 1.404 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1083/2.307, allocations: 73.83 MB / 1.793 GB, free: 6.934 MB / 1.482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/2.307, allocations: 11.94 kB / 1.793 GB, free: 6.922 MB / 1.482 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04805/2.355, allocations: 21.57 MB / 1.814 GB, free: 0.9883 MB / 1.498 GB Notification: Performance of postOpt removeConstants (simulation): time 0.6241/2.979, allocations: 1.357 MB / 1.815 GB, free: 495.1 MB / 1.498 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002177/2.982, allocations: 115 kB / 1.815 GB, free: 495.1 MB / 1.498 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004765/2.986, allocations: 285.3 kB / 1.815 GB, free: 495.1 MB / 1.498 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002356/2.989, allocations: 0.5244 MB / 1.816 GB, free: 495.1 MB / 1.498 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000577/2.989, allocations: 141.7 kB / 1.816 GB, free: 495.1 MB / 1.498 GB Notification: Performance of sorting global known variables: time 0.002931/2.992, allocations: 1.778 MB / 1.818 GB, free: 495 MB / 1.498 GB Notification: Performance of sort global known variables: time 1.9e-07/2.992, allocations: 0 / 1.818 GB, free: 495 MB / 1.498 GB Notification: Performance of remove unused functions: time 0.009089/3.001, allocations: 2.467 MB / 1.82 GB, free: 495 MB / 1.498 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.04768/3.049, allocations: 22.27 MB / 1.842 GB, free: 493.1 MB / 1.498 GB Notification: Performance of simCode: created initialization part: time 0.02904/3.078, allocations: 14.54 MB / 1.856 GB, free: 491.1 MB / 1.498 GB Notification: Performance of simCode: created event and clocks part: time 1.579e-05/3.078, allocations: 6.141 kB / 1.856 GB, free: 491.1 MB / 1.498 GB Notification: Performance of simCode: created simulation system equations: time 0.01954/3.098, allocations: 9.346 MB / 1.865 GB, free: 486.6 MB / 1.498 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009921/3.108, allocations: 1.375 MB / 1.867 GB, free: 486.1 MB / 1.498 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1487/3.257, allocations: 70.18 MB / 1.935 GB, free: 448.1 MB / 1.498 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008093/3.265, allocations: 4.888 MB / 1.94 GB, free: 444.3 MB / 1.498 GB Notification: Performance of simCode: alias equations: time 0.003131/3.268, allocations: 0.7432 MB / 1.941 GB, free: 443.8 MB / 1.498 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003478/3.271, allocations: 2.613 MB / 1.943 GB, free: 441.3 MB / 1.498 GB Notification: Performance of SimCode: time 8.61e-07/3.271, allocations: 3.938 kB / 1.943 GB, free: 441.3 MB / 1.498 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2469/3.518, allocations: 200.1 MB / 2.139 GB, free: 245.2 MB / 1.498 GB Notification: Performance of buildModelFMU: Generate platform static: time 20/23.52, allocations: 15.67 kB / 2.139 GB, free: 245.2 MB / 1.498 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches