Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_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_9_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.001111/0.001111, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001135, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.264/2.264, allocations: 390.3 MB / 0.6647 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5975/0.5987, allocations: 140.4 MB / 0.9497 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.005791/0.6046, allocations: 5.542 MB / 0.9551 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003531/0.6081, allocations: 2.648 MB / 0.9577 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003048/0.6084, allocations: 25.03 kB / 0.9578 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.61, allocations: 0.6742 MB / 0.9584 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007249/0.6108, allocations: 409.3 kB / 0.9588 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008209/0.6116, allocations: 406.4 kB / 0.9592 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008464/0.6125, allocations: 0.966 MB / 0.9601 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005713/0.613, allocations: 470 kB / 0.9606 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000406/0.6134, allocations: 365.5 kB / 0.9609 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004345/0.6139, allocations: 406.7 kB / 0.9613 GB, free: 368 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.089e-05/0.614, allocations: 51.8 kB / 0.9614 GB, free: 364 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006146/0.6146, allocations: 362.4 kB / 0.9617 GB, free: 196 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.6148, allocations: 245.5 kB / 0.9619 GB, free: 36 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003472/0.6152, allocations: 359.8 kB / 0.9623 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.6162, allocations: 0.9539 MB / 0.9632 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.6162, allocations: 1.125 kB / 0.9632 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6162, allocations: 3.938 kB / 0.9632 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.062e-05/0.6162, allocations: 0 / 0.9632 GB, free: 15.16 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001525/0.6178, allocations: 0.9795 MB / 0.9642 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.6178, allocations: 9.875 kB / 0.9642 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.6179, allocations: 94.83 kB / 0.9643 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001366/0.6193, allocations: 200.2 kB / 0.9645 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00069/0.62, allocations: 487.5 kB / 0.9649 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.481e-05/0.62, allocations: 41.64 kB / 0.965 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.6202, allocations: 54.14 kB / 0.965 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.6214, allocations: 0.8317 MB / 0.9658 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.6214, allocations: 6.25 kB / 0.9658 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.42e-05/0.6215, allocations: 27.06 kB / 0.9659 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001987/0.6217, allocations: 70.89 kB / 0.9659 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008673/0.6226, allocations: 0.5638 MB / 0.9665 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004588/0.6272, allocations: 4.588 MB / 0.971 GB, free: 8.531 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004633/0.6277, allocations: 304.2 kB / 0.9713 GB, free: 8.363 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.628, allocations: 222.5 kB / 0.9715 GB, free: 8.25 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.628, allocations: 3.344 kB / 0.9715 GB, free: 8.25 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.6281, allocations: 37.62 kB / 0.9715 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.004e-06/0.6281, allocations: 0 / 0.9715 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005586/0.6337, allocations: 2.643 MB / 0.9741 GB, free: 6.48 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.6337, allocations: 55.34 kB / 0.9741 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/0.6342, allocations: 469.6 kB / 0.9746 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.6342, allocations: 31.83 kB / 0.9746 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002313/0.6345, allocations: 340.2 kB / 0.9749 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.6346, allocations: 148.4 kB / 0.9751 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.6348, allocations: 110.1 kB / 0.9752 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.6349, allocations: 358.9 kB / 0.9755 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.6353, allocations: 235.4 kB / 0.9758 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.6358, allocations: 414.9 kB / 0.9762 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008919/0.6367, allocations: 0.6731 MB / 0.9768 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.6367, allocations: 1.094 kB / 0.9768 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001648/0.6383, allocations: 0.9207 MB / 0.9777 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.6384, allocations: 8.031 kB / 0.9777 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.6384, allocations: 9.656 kB / 0.9777 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007628/0.6392, allocations: 221.9 kB / 0.9779 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000495/0.6397, allocations: 112 kB / 0.978 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005418/0.6451, allocations: 5.339 MB / 0.9833 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004776/0.6456, allocations: 31.97 kB / 0.9833 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/0.6456, allocations: 20 kB / 0.9833 GB, free: 14.05 MB / 0.7481 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.0003202/0.646, allocations: 229.6 kB / 0.9835 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.6461, allocations: 63.22 kB / 0.9836 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001484/0.6476, allocations: 0.7736 MB / 0.9843 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.6476, allocations: 4 kB / 0.9844 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.6476, allocations: 8 kB / 0.9844 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.6476, allocations: 0 / 0.9844 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/0.6501, allocations: 1.494 MB / 0.9858 GB, free: 11.37 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.6501, allocations: 4.188 kB / 0.9858 GB, free: 11.37 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.6505, allocations: 67.89 kB / 0.9859 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006659/0.6512, allocations: 218.5 kB / 0.9861 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.6512, allocations: 15.98 kB / 0.9861 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004801/0.656, allocations: 5.269 MB / 0.9913 GB, free: 5.371 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.656, allocations: 8.094 kB / 0.9913 GB, free: 5.363 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.6578, allocations: 1.135 MB / 0.9924 GB, free: 4.18 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.6581, allocations: 180.4 kB / 0.9925 GB, free: 3.984 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.048e-05/0.6582, allocations: 8 kB / 0.9926 GB, free: 3.977 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003511/0.6585, allocations: 28.03 kB / 0.9926 GB, free: 3.949 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.325e-05/0.6586, allocations: 39.89 kB / 0.9926 GB, free: 3.91 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.6586, allocations: 8 kB / 0.9926 GB, free: 3.902 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003553/0.659, allocations: 318.9 kB / 0.9929 GB, free: 3.594 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.659, allocations: 3.938 kB / 0.9929 GB, free: 3.59 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006859/0.6597, allocations: 168 kB / 0.9931 GB, free: 3.426 MB / 0.7481 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.002024/0.6617, allocations: 1.692 MB / 0.9947 GB, free: 1.676 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001699/0.6634, allocations: 1.06 MB / 0.9958 GB, free: 0.5781 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.6635, allocations: 4 kB / 0.9958 GB, free: 0.5742 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000999/0.6645, allocations: 0.6799 MB / 0.9964 GB, free: 15.86 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009185/0.6654, allocations: 183.3 kB / 0.9966 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007574/0.673, allocations: 5.713 MB / 1.002 GB, free: 9.676 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005796/0.6736, allocations: 0.9494 MB / 1.003 GB, free: 8.699 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003713/0.674, allocations: 113 kB / 1.003 GB, free: 8.586 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/0.6742, allocations: 211.4 kB / 1.003 GB, free: 8.379 MB / 0.7637 GB Notification: Performance of SimCode: time 7.31e-07/0.6742, allocations: 0 / 1.003 GB, free: 8.379 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04299/0.7172, allocations: 14.03 MB / 1.017 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.018/9.736, allocations: 7.812 kB / 1.017 GB, free: 10.63 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches