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 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.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.005099/0.005099, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001462/0.001462, allocations: 202.9 kB / 16.68 MB, free: 5.969 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.651/2.651, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 71.83 kB / 1.083 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3026, allocations: 162.3 MB / 1.242 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007189/0.3098, allocations: 5.451 MB / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.004163/0.314, allocations: 2.63 MB / 1.25 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002703/0.3143, allocations: 27.81 kB / 1.25 GB, free: 1.719 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.316, allocations: 0.6725 MB / 1.25 GB, free: 1.047 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007843/0.3168, allocations: 401.8 kB / 1.251 GB, free: 0.6523 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008249/0.3176, allocations: 403 kB / 1.251 GB, free: 264 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.5346/0.8523, allocations: 0.9424 MB / 1.252 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008167/0.8531, allocations: 467.2 kB / 1.253 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007156/0.8539, allocations: 366.3 kB / 1.253 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007341/0.8546, allocations: 403.7 kB / 1.253 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.8548, allocations: 48.53 kB / 1.253 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007537/0.8555, allocations: 365.1 kB / 1.254 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002549/0.8558, allocations: 248.4 kB / 1.254 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003272/0.8561, allocations: 346.2 kB / 1.254 GB, free: 7.445 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.8572, allocations: 0.9813 MB / 1.255 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.8572, allocations: 2.344 kB / 1.255 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8572, allocations: 0.7812 kB / 1.255 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.528e-06/0.8573, allocations: 0 / 1.255 GB, free: 7.293 MB / 0.9981 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.001352/0.8586, allocations: 0.9829 MB / 1.256 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.8587, allocations: 9.844 kB / 1.256 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.8588, allocations: 101.1 kB / 1.256 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001279/0.8601, allocations: 202.2 kB / 1.256 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006633/0.8607, allocations: 0.5178 MB / 1.257 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.8608, allocations: 40.75 kB / 1.257 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.8609, allocations: 53.81 kB / 1.257 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.862, allocations: 0.8349 MB / 1.258 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.862, allocations: 9.516 kB / 1.258 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-05/0.8621, allocations: 23.66 kB / 1.258 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001849/0.8623, allocations: 69.03 kB / 1.258 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008264/0.8631, allocations: 0.5708 MB / 1.259 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00345/0.8665, allocations: 4.573 MB / 1.263 GB, free: 18.64 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004185/0.867, allocations: 299.8 kB / 1.263 GB, free: 18.6 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/0.8673, allocations: 224.7 kB / 1.264 GB, free: 18.51 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.8673, allocations: 7.766 kB / 1.264 GB, free: 18.51 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.8673, allocations: 44.69 kB / 1.264 GB, free: 18.46 MB / 1.014 GB Notification: Performance of pre-optimization done (n=33): time 1.923e-06/0.8673, allocations: 0 / 1.264 GB, free: 18.46 MB / 1.014 GB Notification: Performance of matching and sorting (n=40): time 0.005028/0.8724, allocations: 2.642 MB / 1.266 GB, free: 17.09 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.8724, allocations: 56.45 kB / 1.266 GB, free: 17.02 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004161/0.8729, allocations: 460 kB / 1.267 GB, free: 16.8 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.8729, allocations: 32.27 kB / 1.267 GB, free: 16.76 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.8731, allocations: 350.9 kB / 1.267 GB, free: 16.48 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 7.876e-05/0.8732, allocations: 149.7 kB / 1.267 GB, free: 16.37 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/0.8733, allocations: 108.7 kB / 1.267 GB, free: 16.31 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.8735, allocations: 362.3 kB / 1.268 GB, free: 15.97 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003004/0.8738, allocations: 236.9 kB / 1.268 GB, free: 15.89 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003506/0.8741, allocations: 407.7 kB / 1.268 GB, free: 15.59 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006625/0.8748, allocations: 0.6789 MB / 1.269 GB, free: 15.18 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.8748, allocations: 0 / 1.269 GB, free: 15.18 MB / 1.014 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001451/0.8763, allocations: 0.9188 MB / 1.27 GB, free: 14.83 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.8763, allocations: 13.02 kB / 1.27 GB, free: 14.83 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.8763, allocations: 7.188 kB / 1.27 GB, free: 14.83 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007001/0.877, allocations: 221.6 kB / 1.27 GB, free: 14.76 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004527/0.8775, allocations: 116.1 kB / 1.27 GB, free: 14.76 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004801/0.8823, allocations: 5.341 MB / 1.275 GB, free: 10.12 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004273/0.8827, allocations: 35.44 kB / 1.275 GB, free: 10.11 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.8828, allocations: 21.94 kB / 1.275 GB, free: 10.11 MB / 1.014 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.0003003/0.8831, allocations: 218.1 kB / 1.276 GB, free: 9.949 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.349e-05/0.8832, allocations: 68.19 kB / 1.276 GB, free: 9.91 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.8846, allocations: 0.7774 MB / 1.276 GB, free: 9.578 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.8846, allocations: 3.781 kB / 1.276 GB, free: 9.578 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.8846, allocations: 0 / 1.276 GB, free: 9.578 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.8846, allocations: 2.344 kB / 1.276 GB, free: 9.578 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.8869, allocations: 1.506 MB / 1.278 GB, free: 8.816 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.887, allocations: 4.234 kB / 1.278 GB, free: 8.816 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.8873, allocations: 68.83 kB / 1.278 GB, free: 8.812 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006613/0.888, allocations: 210.8 kB / 1.278 GB, free: 8.746 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.888, allocations: 9.703 kB / 1.278 GB, free: 8.742 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005154/0.8932, allocations: 5.27 MB / 1.283 GB, free: 4.125 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.8932, allocations: 6.031 kB / 1.283 GB, free: 4.125 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.8949, allocations: 1.135 MB / 1.284 GB, free: 3.551 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/0.8951, allocations: 172 kB / 1.285 GB, free: 3.41 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.21e-05/0.8952, allocations: 17.31 kB / 1.285 GB, free: 3.398 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/0.8955, allocations: 24.28 kB / 1.285 GB, free: 3.395 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/0.8956, allocations: 38.97 kB / 1.285 GB, free: 3.387 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.8956, allocations: 14.44 kB / 1.285 GB, free: 3.383 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0003276/0.896, allocations: 312.5 kB / 1.285 GB, free: 3.234 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.2e-07/0.896, allocations: 0 / 1.285 GB, free: 3.234 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0005995/0.8966, allocations: 166.2 kB / 1.285 GB, free: 3.219 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.001976/0.8985, allocations: 1.69 MB / 1.287 GB, free: 2.105 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001527/0.9001, allocations: 1.013 MB / 1.288 GB, free: 1.543 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.9001, allocations: 1.094 kB / 1.288 GB, free: 1.543 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009336/0.901, allocations: 0.6772 MB / 1.288 GB, free: 1.086 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008284/0.9019, allocations: 186.5 kB / 1.289 GB, free: 1.027 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007435/0.9093, allocations: 5.627 MB / 1.294 GB, free: 13.72 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005979/0.9099, allocations: 0.9469 MB / 1.295 GB, free: 12.99 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0003631/0.9103, allocations: 119.8 kB / 1.295 GB, free: 12.96 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.9106, allocations: 210.1 kB / 1.295 GB, free: 12.8 MB / 1.029 GB Notification: Performance of SimCode: time 5.11e-07/0.9106, allocations: 0 / 1.295 GB, free: 12.8 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.356/3.267, allocations: 14.1 MB / 1.309 GB, free: 11.63 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 18/21.27, allocations: 5.969 kB / 1.309 GB, free: 11.62 MB / 1.029 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=400 --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