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.007305/0.007305, allocations: 101.2 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.001578/0.001578, allocations: 196.3 kB / 16.67 MB, free: 5.977 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.541/2.541, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 64.05 kB / 1.054 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2731, allocations: 157.4 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007055/0.2802, allocations: 5.472 MB / 1.213 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004373/0.2846, allocations: 2.619 MB / 1.215 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006046/0.2852, allocations: 19.88 kB / 1.215 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001973/0.2873, allocations: 0.6787 MB / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001195/0.2885, allocations: 405.7 kB / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.2896, allocations: 403 kB / 1.217 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001179/0.2908, allocations: 0.9552 MB / 1.218 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006784/0.2915, allocations: 470.7 kB / 1.218 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005718/0.2921, allocations: 370.6 kB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006018/0.2927, allocations: 398.5 kB / 1.219 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.2928, allocations: 51.94 kB / 1.219 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006926/0.2935, allocations: 367.2 kB / 1.219 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.2938, allocations: 251.4 kB / 1.219 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003959/0.2942, allocations: 338.3 kB / 1.22 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.2953, allocations: 0.9811 MB / 1.221 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2953, allocations: 4 kB / 1.221 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2953, allocations: 0 / 1.221 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.755e-05/0.2954, allocations: 0 / 1.221 GB, free: 12.44 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.001671/0.2971, allocations: 0.966 MB / 1.222 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.2971, allocations: 12.62 kB / 1.222 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.2972, allocations: 98.69 kB / 1.222 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001407/0.2986, allocations: 199.8 kB / 1.222 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007724/0.2994, allocations: 0.5141 MB / 1.222 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.2995, allocations: 37.36 kB / 1.222 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.2996, allocations: 48.56 kB / 1.222 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.3007, allocations: 0.8316 MB / 1.223 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.3008, allocations: 11.88 kB / 1.223 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-05/0.3009, allocations: 31.97 kB / 1.223 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001963/0.3011, allocations: 64.94 kB / 1.223 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008537/0.3019, allocations: 0.5658 MB / 1.224 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004096/0.306, allocations: 4.561 MB / 1.228 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004406/0.3065, allocations: 301.1 kB / 1.229 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.3068, allocations: 225.3 kB / 1.229 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.3068, allocations: 4.281 kB / 1.229 GB, free: 3.445 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.3069, allocations: 30.84 kB / 1.229 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=33): time 2.004e-06/0.3069, allocations: 4 kB / 1.229 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40): time 0.005261/0.3121, allocations: 2.654 MB / 1.232 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.3122, allocations: 55.41 kB / 1.232 GB, free: 0.5547 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004542/0.3126, allocations: 461.9 kB / 1.232 GB, free: 92 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.3127, allocations: 29.7 kB / 1.232 GB, free: 56 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/0.3129, allocations: 339.6 kB / 1.232 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.313, allocations: 149.9 kB / 1.233 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.3132, allocations: 110.2 kB / 1.233 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3133, allocations: 358.8 kB / 1.233 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003352/0.3137, allocations: 241 kB / 1.233 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.3141, allocations: 406.4 kB / 1.234 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000795/0.3149, allocations: 0.674 MB / 1.234 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3149, allocations: 4 kB / 1.234 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001609/0.3165, allocations: 0.921 MB / 1.235 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3166, allocations: 9.562 kB / 1.235 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.3166, allocations: 4 kB / 1.235 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007746/0.3174, allocations: 223 kB / 1.235 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004835/0.3179, allocations: 111.8 kB / 1.235 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004816/0.3227, allocations: 5.332 MB / 1.241 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004545/0.3232, allocations: 31.97 kB / 1.241 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.064e-05/0.3232, allocations: 28 kB / 1.241 GB, free: 6.543 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.0002926/0.3235, allocations: 225.7 kB / 1.241 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.3237, allocations: 59.28 kB / 1.241 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.3251, allocations: 0.7775 MB / 1.242 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3251, allocations: 4 kB / 1.242 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.3251, allocations: 0 / 1.242 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3252, allocations: 0 / 1.242 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.3275, allocations: 1.498 MB / 1.243 GB, free: 3.867 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3275, allocations: 4 kB / 1.243 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.3279, allocations: 67.88 kB / 1.243 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006533/0.3286, allocations: 202.8 kB / 1.244 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.525e-05/0.3286, allocations: 23.92 kB / 1.244 GB, free: 3.566 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.527/0.8556, allocations: 5.264 MB / 1.249 GB, free: 35.77 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.8557, allocations: 2 kB / 1.249 GB, free: 35.77 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.8576, allocations: 1.135 MB / 1.25 GB, free: 35.55 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.8579, allocations: 168.4 kB / 1.25 GB, free: 35.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/0.858, allocations: 9.672 kB / 1.25 GB, free: 35.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003304/0.8583, allocations: 27.78 kB / 1.25 GB, free: 35.46 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.8584, allocations: 36.78 kB / 1.25 GB, free: 35.46 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.031e-05/0.8585, allocations: 14.2 kB / 1.25 GB, free: 35.46 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003558/0.8588, allocations: 314 kB / 1.25 GB, free: 35.37 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8588, allocations: 0 / 1.25 GB, free: 35.37 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006822/0.8595, allocations: 167.8 kB / 1.25 GB, free: 35.37 MB / 0.9981 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.001784/0.8613, allocations: 1.697 MB / 1.252 GB, free: 34.62 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001306/0.8626, allocations: 1.006 MB / 1.253 GB, free: 34.29 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.8626, allocations: 0 / 1.253 GB, free: 34.29 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000751/0.8634, allocations: 0.6833 MB / 1.254 GB, free: 33.94 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008084/0.8642, allocations: 173.6 kB / 1.254 GB, free: 33.94 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006369/0.8706, allocations: 5.61 MB / 1.259 GB, free: 31.78 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.871, allocations: 0.946 MB / 1.26 GB, free: 31.07 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003632/0.8714, allocations: 116.1 kB / 1.26 GB, free: 31.05 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002408/0.8716, allocations: 209.1 kB / 1.261 GB, free: 31.04 MB / 0.9981 GB Notification: Performance of SimCode: time 7.91e-07/0.8716, allocations: 0.7812 kB / 1.261 GB, free: 31.04 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04864/0.9203, allocations: 14.37 MB / 1.275 GB, free: 29.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.977/10.9, allocations: 1.156 kB / 1.275 GB, free: 29.9 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