Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_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.0007351/0.0007351, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.004475/0.004475, allocations: 174.8 kB / 16.27 MB, free: 6.648 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.253/1.253, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.182/2.182, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002788, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.529/0.5293, allocations: 142.4 MB / 0.9552 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.004284/0.5337, allocations: 5.088 MB / 0.9601 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002879/0.5366, allocations: 2.598 MB / 0.9627 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.5368, allocations: 17.19 kB / 0.9627 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002147/0.537, allocations: 103.8 kB / 0.9628 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006084/0.5376, allocations: 386.6 kB / 0.9632 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005836/0.5382, allocations: 355.9 kB / 0.9635 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008515/0.539, allocations: 1.252 MB / 0.9647 GB, free: 476 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001006/0.5401, allocations: 0.7839 MB / 0.9655 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000332/0.5404, allocations: 309.8 kB / 0.9658 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004284/0.5408, allocations: 390.5 kB / 0.9662 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.308e-05/0.5409, allocations: 25.97 kB / 0.9662 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000568/0.5415, allocations: 434.2 kB / 0.9666 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002042/0.5417, allocations: 220.9 kB / 0.9668 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002917/0.542, allocations: 332.4 kB / 0.9671 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008482/0.5428, allocations: 0.9624 MB / 0.9681 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.5429, allocations: 0 / 0.9681 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.483e-06/0.5429, allocations: 0.9688 kB / 0.9681 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.5429, allocations: 0 / 0.9681 GB, free: 14.3 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.001204/0.5441, allocations: 0.8409 MB / 0.9689 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.5441, allocations: 8.469 kB / 0.9689 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000108/0.5442, allocations: 107.9 kB / 0.969 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001253/0.5455, allocations: 189.2 kB / 0.9692 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005973/0.5461, allocations: 491.9 kB / 0.9696 GB, free: 13.01 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.5462, allocations: 45.2 kB / 0.9697 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.5463, allocations: 47.5 kB / 0.9697 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.5473, allocations: 0.8347 MB / 0.9705 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.5474, allocations: 7.406 kB / 0.9706 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.926e-05/0.5474, allocations: 27.02 kB / 0.9706 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001705/0.5476, allocations: 65.72 kB / 0.9706 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008031/0.5484, allocations: 0.5717 MB / 0.9712 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.5522, allocations: 4.592 MB / 0.9757 GB, free: 7.754 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004224/0.5526, allocations: 292 kB / 0.976 GB, free: 7.598 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002782/0.5529, allocations: 231.4 kB / 0.9762 GB, free: 7.477 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.5529, allocations: 7.422 kB / 0.9762 GB, free: 7.473 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.5529, allocations: 36.31 kB / 0.9762 GB, free: 7.43 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 1.503e-06/0.553, allocations: 5.312 kB / 0.9762 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.00501/0.558, allocations: 2.63 MB / 0.9788 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.558, allocations: 55.31 kB / 0.9789 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000419/0.5584, allocations: 466.1 kB / 0.9793 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.5585, allocations: 34.95 kB / 0.9793 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.5587, allocations: 340.7 kB / 0.9797 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.777e-05/0.5588, allocations: 140.1 kB / 0.9798 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.014e-05/0.5589, allocations: 49.94 kB / 0.9798 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.559, allocations: 364.3 kB / 0.9802 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003243/0.5593, allocations: 235.3 kB / 0.9804 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004123/0.5597, allocations: 405.7 kB / 0.9808 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007728/0.5605, allocations: 0.6917 MB / 0.9815 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.5605, allocations: 0 / 0.9815 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001489/0.562, allocations: 0.9168 MB / 0.9824 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.562, allocations: 8.656 kB / 0.9824 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.562, allocations: 4 kB / 0.9824 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006952/0.5628, allocations: 226.4 kB / 0.9826 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000458/0.5632, allocations: 119.8 kB / 0.9827 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.5673, allocations: 4.934 MB / 0.9875 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.5677, allocations: 31.97 kB / 0.9876 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.5678, allocations: 32.17 kB / 0.9876 GB, free: 12.73 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.0002418/0.568, allocations: 221.7 kB / 0.9878 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.207e-05/0.5681, allocations: 55.34 kB / 0.9879 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.5695, allocations: 0.7773 MB / 0.9886 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5695, allocations: 4 kB / 0.9886 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.5695, allocations: 4 kB / 0.9886 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.5695, allocations: 3.984 kB / 0.9886 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.5716, allocations: 1.498 MB / 0.9901 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5717, allocations: 4 kB / 0.9901 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.572, allocations: 67.88 kB / 0.9902 GB, free: 9.992 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006089/0.5726, allocations: 214.5 kB / 0.9904 GB, free: 9.773 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.5727, allocations: 12 kB / 0.9904 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/0.5765, allocations: 4.866 MB / 0.9951 GB, free: 4.496 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5766, allocations: 7.875 kB / 0.9951 GB, free: 4.488 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.5781, allocations: 1.139 MB / 0.9962 GB, free: 3.301 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.5783, allocations: 164.4 kB / 0.9964 GB, free: 3.121 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.31e-05/0.5784, allocations: 12 kB / 0.9964 GB, free: 3.109 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.5787, allocations: 23.97 kB / 0.9964 GB, free: 3.086 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.569e-05/0.5787, allocations: 43.89 kB / 0.9965 GB, free: 3.043 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.5788, allocations: 16 kB / 0.9965 GB, free: 3.027 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002741/0.5791, allocations: 314.9 kB / 0.9968 GB, free: 2.723 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5791, allocations: 0 / 0.9968 GB, free: 2.723 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005495/0.5796, allocations: 164 kB / 0.9969 GB, free: 2.562 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.001765/0.5814, allocations: 1.692 MB / 0.9986 GB, free: 0.8086 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001353/0.5827, allocations: 1.004 MB / 0.9996 GB, free: 15.77 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5828, allocations: 4 kB / 0.9996 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008375/0.5836, allocations: 0.6799 MB / 1 GB, free: 15.04 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009204/0.5845, allocations: 169 kB / 1 GB, free: 14.88 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006958/0.5915, allocations: 5.962 MB / 1.006 GB, free: 8.625 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004394/0.592, allocations: 0.9455 MB / 1.007 GB, free: 7.652 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.00033/0.5923, allocations: 117 kB / 1.007 GB, free: 7.539 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/0.5925, allocations: 207.4 kB / 1.007 GB, free: 7.336 MB / 0.7637 GB Notification: Performance of SimCode: time 2.41e-07/0.5925, allocations: 0 / 1.007 GB, free: 7.336 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.599/3.191, allocations: 13.26 MB / 1.02 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002693/3.192, allocations: 225.8 kB / 1.021 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/5.199, allocations: 6.375 kB / 1.021 GB, free: 10.09 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches