Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.007716/0.007722, allocations: 101 kB / 15.73 MB, free: 6.039 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.001851/0.001851, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.705/2.705, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001494, allocations: 71.83 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9085/0.91, allocations: 151.6 MB / 1.166 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007362/0.9174, allocations: 5.471 MB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.004347/0.9218, allocations: 2.63 MB / 1.174 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005167/0.9224, allocations: 19.88 kB / 1.174 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.9242, allocations: 0.6859 MB / 1.175 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001071/0.9253, allocations: 421.7 kB / 1.175 GB, free: 10.53 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.9264, allocations: 404.2 kB / 1.176 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001223/0.9276, allocations: 0.9475 MB / 1.176 GB, free: 9.18 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000716/0.9284, allocations: 468.7 kB / 1.177 GB, free: 8.719 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006523/0.929, allocations: 378.5 kB / 1.177 GB, free: 8.348 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006873/0.9297, allocations: 398.5 kB / 1.178 GB, free: 7.957 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.9299, allocations: 48 kB / 1.178 GB, free: 7.91 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007533/0.9306, allocations: 367.2 kB / 1.178 GB, free: 7.551 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003183/0.9309, allocations: 247.3 kB / 1.178 GB, free: 7.309 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005114/0.9315, allocations: 350.3 kB / 1.179 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001324/0.9328, allocations: 0.9617 MB / 1.18 GB, free: 6 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.9328, allocations: 0 / 1.18 GB, free: 6 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.774e-06/0.9328, allocations: 4 kB / 1.18 GB, free: 5.996 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.506e-05/0.9329, allocations: 4 kB / 1.18 GB, free: 5.992 MB / 0.9044 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.001997/0.9349, allocations: 0.9737 MB / 1.181 GB, free: 4.965 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.9349, allocations: 12.91 kB / 1.181 GB, free: 4.953 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.935, allocations: 98.69 kB / 1.181 GB, free: 4.848 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.9364, allocations: 199.8 kB / 1.181 GB, free: 4.652 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008102/0.9373, allocations: 0.5102 MB / 1.181 GB, free: 4.102 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.9373, allocations: 45.36 kB / 1.181 GB, free: 4.059 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.9375, allocations: 48.56 kB / 1.181 GB, free: 4.012 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.9386, allocations: 0.8277 MB / 1.182 GB, free: 3.105 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.622e-05/0.9387, allocations: 11.94 kB / 1.182 GB, free: 3.094 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-05/0.9387, allocations: 23.98 kB / 1.182 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001883/0.9389, allocations: 68.94 kB / 1.182 GB, free: 3 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008694/0.9398, allocations: 0.5658 MB / 1.183 GB, free: 2.438 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004537/0.9443, allocations: 4.565 MB / 1.187 GB, free: 13.52 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004761/0.9448, allocations: 299.2 kB / 1.188 GB, free: 13.21 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/0.9452, allocations: 229.3 kB / 1.188 GB, free: 12.99 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.555e-05/0.9452, allocations: 288 / 1.188 GB, free: 12.99 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.9452, allocations: 38.84 kB / 1.188 GB, free: 12.94 MB / 0.92 GB Notification: Performance of pre-optimization done (n=33): time 1.643e-06/0.9452, allocations: 0 / 1.188 GB, free: 12.94 MB / 0.92 GB Notification: Performance of matching and sorting (n=40): time 0.005609/0.9509, allocations: 2.642 MB / 1.19 GB, free: 10.17 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.9509, allocations: 55.41 kB / 1.19 GB, free: 10.11 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004843/0.9514, allocations: 457.9 kB / 1.191 GB, free: 9.645 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.9515, allocations: 37.64 kB / 1.191 GB, free: 9.602 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.9517, allocations: 343.6 kB / 1.191 GB, free: 9.262 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 9.871e-05/0.9518, allocations: 142 kB / 1.191 GB, free: 9.121 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.9519, allocations: 102.2 kB / 1.192 GB, free: 9.016 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.9521, allocations: 366.8 kB / 1.192 GB, free: 8.648 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.9524, allocations: 233 kB / 1.192 GB, free: 8.422 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004245/0.9528, allocations: 406.4 kB / 1.192 GB, free: 7.949 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008048/0.9536, allocations: 0.674 MB / 1.193 GB, free: 7.203 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.9536, allocations: 4 kB / 1.193 GB, free: 7.199 MB / 0.92 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001618/0.9553, allocations: 0.9211 MB / 1.194 GB, free: 6.262 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.9553, allocations: 8 kB / 1.194 GB, free: 6.254 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.9553, allocations: 8 kB / 1.194 GB, free: 6.246 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007741/0.9561, allocations: 222.7 kB / 1.194 GB, free: 6.02 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.9566, allocations: 119.8 kB / 1.194 GB, free: 5.902 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004869/0.9615, allocations: 5.336 MB / 1.2 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004143/0.9619, allocations: 31.97 kB / 1.2 GB, free: 120 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.541e-05/0.962, allocations: 20 kB / 1.2 GB, free: 100 kB / 0.92 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.0003042/0.9623, allocations: 229.7 kB / 1.2 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.9624, allocations: 59.28 kB / 1.2 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.9638, allocations: 0.7772 MB / 1.201 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.9638, allocations: 4 kB / 1.201 GB, free: 15 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.9639, allocations: 4 kB / 1.201 GB, free: 15 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.9639, allocations: 144 / 1.201 GB, free: 15 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002333/0.9662, allocations: 1.495 MB / 1.202 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.9662, allocations: 4 kB / 1.202 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003647/0.9666, allocations: 71.86 kB / 1.202 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006726/0.9673, allocations: 206.4 kB / 1.202 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.296e-05/0.9673, allocations: 8 kB / 1.202 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/0.9719, allocations: 5.277 MB / 1.208 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.9719, allocations: 7.938 kB / 1.208 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/0.9736, allocations: 1.127 MB / 1.209 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002451/0.9739, allocations: 176.3 kB / 1.209 GB, free: 6.051 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.381e-05/0.974, allocations: 8.188 kB / 1.209 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003373/0.9743, allocations: 31.97 kB / 1.209 GB, free: 6.012 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.575e-05/0.9744, allocations: 35.89 kB / 1.209 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.9745, allocations: 16 kB / 1.209 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003263/0.9748, allocations: 306.9 kB / 1.209 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9748, allocations: 0 / 1.209 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0006642/0.9755, allocations: 172.1 kB / 1.209 GB, free: 5.496 MB / 0.9356 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.00194/0.9774, allocations: 1.701 MB / 1.211 GB, free: 3.734 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001536/0.979, allocations: 1.004 MB / 1.212 GB, free: 2.691 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.979, allocations: 4.062 kB / 1.212 GB, free: 2.688 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008976/0.9799, allocations: 0.6876 MB / 1.213 GB, free: 1.961 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008646/0.9808, allocations: 165.2 kB / 1.213 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007755/0.9885, allocations: 5.598 MB / 1.218 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.9891, allocations: 0.9494 MB / 1.219 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0003305/0.9894, allocations: 125 kB / 1.219 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/0.9897, allocations: 207.4 kB / 1.22 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of SimCode: time 6.62e-07/0.9897, allocations: 0 / 1.22 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04227/1.032, allocations: 14.11 MB / 1.233 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/11.67, allocations: 8.25 kB / 1.233 GB, free: 12.76 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches