Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_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_latest_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.004979/0.004979, allocations: 100.6 kB / 15.73 MB, free: 5.98 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.001184/0.001184, allocations: 201.6 kB / 16.68 MB, free: 5.906 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.251/1.251, allocations: 222.9 MB / 240.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.443/2.443, allocations: 461.9 MB / 0.7348 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.001371, allocations: 67.89 kB / 1.054 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7874/0.7888, allocations: 157.4 MB / 1.207 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007579/0.7964, allocations: 5.468 MB / 1.213 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004597/0.8011, allocations: 2.623 MB / 1.215 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006028/0.8017, allocations: 23.81 kB / 1.215 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.8036, allocations: 0.6807 MB / 1.216 GB, free: 4.785 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.00113/0.8048, allocations: 401.8 kB / 1.216 GB, free: 4.391 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.8059, allocations: 402.9 kB / 1.217 GB, free: 4 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001239/0.8071, allocations: 0.9552 MB / 1.218 GB, free: 3.039 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007379/0.8079, allocations: 464.7 kB / 1.218 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006622/0.8085, allocations: 366.6 kB / 1.218 GB, free: 2.227 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007102/0.8093, allocations: 402.4 kB / 1.219 GB, free: 1.832 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.8094, allocations: 52 kB / 1.219 GB, free: 1.781 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007795/0.8102, allocations: 367.2 kB / 1.219 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003059/0.8105, allocations: 243.3 kB / 1.219 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0004924/0.811, allocations: 350.2 kB / 1.22 GB, free: 0.8398 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001251/0.8123, allocations: 0.9695 MB / 1.221 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.8123, allocations: 0 / 1.221 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.183e-06/0.8123, allocations: 0 / 1.221 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.126e-05/0.8123, allocations: 0 / 1.221 GB, free: 15.87 MB / 0.9512 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.001897/0.8142, allocations: 0.9736 MB / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.8143, allocations: 8.031 kB / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.8144, allocations: 102.7 kB / 1.222 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/0.8159, allocations: 195.8 kB / 1.222 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009215/0.8168, allocations: 0.5179 MB / 1.222 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.8169, allocations: 41.36 kB / 1.222 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.817, allocations: 48.56 kB / 1.222 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.8182, allocations: 0.8316 MB / 1.223 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.8182, allocations: 4 kB / 1.223 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.572e-05/0.8183, allocations: 23.98 kB / 1.223 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001897/0.8185, allocations: 68.94 kB / 1.223 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009024/0.8194, allocations: 0.5774 MB / 1.224 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004433/0.8239, allocations: 4.561 MB / 1.228 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.8243, allocations: 299.3 kB / 1.229 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/0.8246, allocations: 225.3 kB / 1.229 GB, free: 6.867 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.8247, allocations: 4.281 kB / 1.229 GB, free: 6.863 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.8247, allocations: 34.84 kB / 1.229 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=33): time 3.436e-06/0.8247, allocations: 0 / 1.229 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of matching and sorting (n=40): time 0.005436/0.8302, allocations: 2.644 MB / 1.232 GB, free: 4.047 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.8302, allocations: 55.41 kB / 1.232 GB, free: 3.98 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005209/0.8308, allocations: 469.8 kB / 1.232 GB, free: 3.508 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.8308, allocations: 29.7 kB / 1.232 GB, free: 3.473 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.831, allocations: 343.6 kB / 1.232 GB, free: 3.129 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.8312, allocations: 138 kB / 1.233 GB, free: 2.992 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.8313, allocations: 106.1 kB / 1.233 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.8315, allocations: 366.7 kB / 1.233 GB, free: 2.512 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.8319, allocations: 241 kB / 1.233 GB, free: 2.277 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/0.8323, allocations: 406.5 kB / 1.234 GB, free: 1.809 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000834/0.8331, allocations: 0.6778 MB / 1.234 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.8332, allocations: 0 / 1.234 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001652/0.8348, allocations: 0.9132 MB / 1.235 GB, free: 132 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.8348, allocations: 8.656 kB / 1.235 GB, free: 124 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.8349, allocations: 4 kB / 1.235 GB, free: 120 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007936/0.8357, allocations: 226.4 kB / 1.235 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.8362, allocations: 115.8 kB / 1.235 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005029/0.8412, allocations: 5.343 MB / 1.241 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.8417, allocations: 23.98 kB / 1.241 GB, free: 9.988 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.033e-05/0.8418, allocations: 27.98 kB / 1.241 GB, free: 9.961 MB / 0.9669 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.0003168/0.8421, allocations: 221.6 kB / 1.241 GB, free: 9.734 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.8422, allocations: 59.28 kB / 1.241 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.8436, allocations: 0.7699 MB / 1.242 GB, free: 8.891 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.8437, allocations: 7.938 kB / 1.242 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.8437, allocations: 4 kB / 1.242 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.8437, allocations: 7.984 kB / 1.242 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002488/0.8462, allocations: 1.496 MB / 1.243 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.8462, allocations: 0 / 1.243 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.8466, allocations: 63.95 kB / 1.243 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007205/0.8473, allocations: 206.5 kB / 1.244 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.468e-05/0.8474, allocations: 11.98 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004824/0.8522, allocations: 5.281 MB / 1.249 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.8522, allocations: 4.031 kB / 1.249 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.854, allocations: 1.131 MB / 1.25 GB, free: 120 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003398/0.8543, allocations: 180.4 kB / 1.25 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.886e-05/0.8544, allocations: 12 kB / 1.25 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003415/0.8548, allocations: 23.97 kB / 1.25 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.748e-05/0.8549, allocations: 36.02 kB / 1.25 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.8549, allocations: 12 kB / 1.25 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003387/0.8552, allocations: 310.9 kB / 1.25 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.8553, allocations: 0 / 1.25 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006775/0.8559, allocations: 168 kB / 1.25 GB, free: 15.37 MB / 0.9825 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.00205/0.858, allocations: 1.692 MB / 1.252 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001768/0.8598, allocations: 1.013 MB / 1.253 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.8598, allocations: 4 kB / 1.253 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0009682/0.8608, allocations: 0.6836 MB / 1.254 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009508/0.8617, allocations: 180.9 kB / 1.254 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008226/0.87, allocations: 5.612 MB / 1.259 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006107/0.8706, allocations: 0.9415 MB / 1.26 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0003587/0.871, allocations: 117 kB / 1.26 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.8713, allocations: 207.4 kB / 1.261 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of SimCode: time 8.82e-07/0.8713, allocations: 0 / 1.261 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04263/0.9139, allocations: 14.37 MB / 1.275 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.27, allocations: 12.03 kB / 1.275 GB, free: 6.383 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches