Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.004375/0.004376, allocations: 106 kB / 15.74 MB, free: 6.02 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.001213/0.001213, allocations: 193.7 kB / 16.67 MB, free: 5.934 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.588/2.588, allocations: 482.6 MB / 0.7551 GB, free: 6.625 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 64.97 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2922, allocations: 162.3 MB / 1.242 GB, free: 8.914 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007366/0.2996, allocations: 5.554 MB / 1.247 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004257/0.3039, allocations: 2.642 MB / 1.25 GB, free: 0.6797 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.3042, allocations: 27.81 kB / 1.25 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001707/0.3059, allocations: 0.6652 MB / 1.251 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0008482/0.3068, allocations: 409.7 kB / 1.251 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009015/0.3077, allocations: 418.1 kB / 1.251 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001006/0.3087, allocations: 0.9553 MB / 1.252 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006224/0.3093, allocations: 470.7 kB / 1.253 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004208/0.3098, allocations: 370.6 kB / 1.253 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005066/0.3103, allocations: 414.3 kB / 1.253 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.817e-05/0.3104, allocations: 48 kB / 1.253 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005894/0.311, allocations: 359.3 kB / 1.254 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002406/0.3112, allocations: 243.3 kB / 1.254 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000328/0.3116, allocations: 358.1 kB / 1.254 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.3126, allocations: 0.9806 MB / 1.255 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3126, allocations: 0 / 1.255 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3126, allocations: 0 / 1.255 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.3126, allocations: 0 / 1.255 GB, free: 11.01 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001533/0.3142, allocations: 0.9961 MB / 1.256 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.3142, allocations: 20.02 kB / 1.256 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.3143, allocations: 94.7 kB / 1.256 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/0.3156, allocations: 196.3 kB / 1.257 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007507/0.3164, allocations: 0.53 MB / 1.257 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.3164, allocations: 41.36 kB / 1.257 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.3166, allocations: 56.55 kB / 1.257 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.3177, allocations: 0.8316 MB / 1.258 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.3178, allocations: 3.938 kB / 1.258 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.656e-05/0.3178, allocations: 23.98 kB / 1.258 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001781/0.318, allocations: 68.95 kB / 1.258 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008558/0.3189, allocations: 0.5658 MB / 1.259 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004225/0.3231, allocations: 4.581 MB / 1.263 GB, free: 2.48 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004564/0.3236, allocations: 295.3 kB / 1.263 GB, free: 2.184 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003054/0.3239, allocations: 225.3 kB / 1.264 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.3239, allocations: 288 / 1.264 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.324, allocations: 42.84 kB / 1.264 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=33): time 1.112e-06/0.324, allocations: 0 / 1.264 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40): time 0.005352/0.3293, allocations: 2.652 MB / 1.266 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.3294, allocations: 55.41 kB / 1.266 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004886/0.3299, allocations: 466 kB / 1.267 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.3299, allocations: 29.7 kB / 1.267 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.3302, allocations: 348.5 kB / 1.267 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.3303, allocations: 154.7 kB / 1.267 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.3305, allocations: 106.2 kB / 1.267 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001848/0.3307, allocations: 362.8 kB / 1.268 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003832/0.3311, allocations: 241 kB / 1.268 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004898/0.3316, allocations: 406.4 kB / 1.268 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008934/0.3325, allocations: 0.67 MB / 1.269 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3325, allocations: 4 kB / 1.269 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001634/0.3342, allocations: 0.925 MB / 1.27 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3342, allocations: 8 kB / 1.27 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3342, allocations: 4 kB / 1.27 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007718/0.335, allocations: 238.9 kB / 1.27 GB, free: 10.94 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004754/0.3355, allocations: 111.8 kB / 1.27 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005318/0.3408, allocations: 5.34 MB / 1.275 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003665/0.3412, allocations: 31.97 kB / 1.276 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.221e-05/0.3412, allocations: 28.06 kB / 1.276 GB, free: 5.008 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,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.000266/0.3415, allocations: 222.1 kB / 1.276 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.3416, allocations: 67.7 kB / 1.276 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/0.3431, allocations: 0.7773 MB / 1.277 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.3431, allocations: 4 kB / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3431, allocations: 0 / 1.277 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3431, allocations: 7.984 kB / 1.277 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002324/0.3455, allocations: 1.498 MB / 1.278 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3455, allocations: 0 / 1.278 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/0.3458, allocations: 71.83 kB / 1.278 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006438/0.3465, allocations: 210.5 kB / 1.278 GB, free: 2.035 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.3465, allocations: 12 kB / 1.278 GB, free: 2.023 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004879/0.3514, allocations: 5.274 MB / 1.283 GB, free: 12.33 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3514, allocations: 3.938 kB / 1.284 GB, free: 12.33 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.3531, allocations: 1.131 MB / 1.285 GB, free: 11.15 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.3533, allocations: 176.6 kB / 1.285 GB, free: 10.96 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.282e-05/0.3534, allocations: 8 kB / 1.285 GB, free: 10.95 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.3537, allocations: 23.97 kB / 1.285 GB, free: 10.93 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.287e-05/0.3538, allocations: 39.89 kB / 1.285 GB, free: 10.89 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.868e-05/0.3539, allocations: 16.06 kB / 1.285 GB, free: 10.87 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0003253/0.3542, allocations: 314.9 kB / 1.285 GB, free: 10.57 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.3542, allocations: 0 / 1.285 GB, free: 10.57 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0005879/0.3548, allocations: 172 kB / 1.285 GB, free: 10.4 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002009/0.3568, allocations: 1.696 MB / 1.287 GB, free: 8.641 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001576/0.3584, allocations: 1.016 MB / 1.288 GB, free: 7.586 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3584, allocations: 0 / 1.288 GB, free: 7.586 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009533/0.3594, allocations: 0.6837 MB / 1.289 GB, free: 6.863 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008256/0.3602, allocations: 176.9 kB / 1.289 GB, free: 6.691 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00741/0.3676, allocations: 5.652 MB / 1.294 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006287/0.3683, allocations: 0.9493 MB / 1.295 GB, free: 15.78 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0003081/0.3686, allocations: 113 kB / 1.295 GB, free: 15.67 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002755/0.3689, allocations: 219.4 kB / 1.296 GB, free: 15.45 MB / 1.029 GB Notification: Performance of SimCode: time 2.5e-07/0.3689, allocations: 0 / 1.296 GB, free: 15.45 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.114/6.483, allocations: 14.2 MB / 1.309 GB, free: 1.559 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.49/22.97, allocations: 11.3 kB / 1.309 GB, free: 1.551 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches