Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006137/0.006137, allocations: 99.97 kB / 15.73 MB, free: 6.004 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.001272/0.001272, allocations: 193 kB / 16.67 MB, free: 5.93 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.818/2.818, allocations: 472.6 MB / 0.7453 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 63.91 kB / 1.069 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3298, allocations: 159.9 MB / 1.226 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004903/0.3348, allocations: 3.264 MB / 1.229 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003684/0.3385, allocations: 2.018 MB / 1.231 GB, free: 3.848 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002922/0.3388, allocations: 4 kB / 1.231 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.34, allocations: 294.8 kB / 1.231 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0007332/0.3407, allocations: 234.9 kB / 1.231 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008665/0.3416, allocations: 287.3 kB / 1.232 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0006615/0.3423, allocations: 410.7 kB / 1.232 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004472/0.3427, allocations: 204.2 kB / 1.232 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003284/0.3431, allocations: 159.5 kB / 1.232 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005244/0.3436, allocations: 199.3 kB / 1.233 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.306e-05/0.3437, allocations: 24 kB / 1.233 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005951/0.3443, allocations: 271.4 kB / 1.233 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.3445, allocations: 119.7 kB / 1.233 GB, free: 1.68 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.3447, allocations: 147.2 kB / 1.233 GB, free: 1.535 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0009199/0.3457, allocations: 494.2 kB / 1.234 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3457, allocations: 8 kB / 1.234 GB, free: 1.043 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.884e-06/0.3457, allocations: 0 / 1.234 GB, free: 1.043 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.871e-05/0.3457, allocations: 0 / 1.234 GB, free: 1.043 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001445/0.3472, allocations: 0.6037 MB / 1.234 GB, free: 400 kB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.3472, allocations: 8.031 kB / 1.234 GB, free: 392 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.3484, allocations: 124.6 kB / 1.234 GB, free: 268 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005448/0.349, allocations: 281.8 kB / 1.235 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.773e-05/0.3491, allocations: 12.94 kB / 1.235 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001706/0.3492, allocations: 48.61 kB / 1.235 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009516/0.3502, allocations: 457 kB / 1.235 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.3502, allocations: 0 / 1.235 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.894e-05/0.3503, allocations: 12 kB / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001451/0.3504, allocations: 36.53 kB / 1.235 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.3512, allocations: 365.9 kB / 1.235 GB, free: 15 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.3541, allocations: 2.222 MB / 1.238 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.3546, allocations: 262.4 kB / 1.238 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.3549, allocations: 168.7 kB / 1.238 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.3549, allocations: 4 kB / 1.238 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.355, allocations: 34.56 kB / 1.238 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=22): time 2.164e-06/0.355, allocations: 3.938 kB / 1.238 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23): time 0.002296/0.3573, allocations: 1.058 MB / 1.239 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.3573, allocations: 51.41 kB / 1.239 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.3577, allocations: 265 kB / 1.239 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.3577, allocations: 29.69 kB / 1.239 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.3579, allocations: 196.3 kB / 1.24 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.447e-05/0.358, allocations: 91.2 kB / 1.24 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.3581, allocations: 77.64 kB / 1.24 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001899/0.3583, allocations: 334.8 kB / 1.24 GB, free: 9.898 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.3587, allocations: 151.9 kB / 1.24 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004228/0.3591, allocations: 241.6 kB / 1.24 GB, free: 9.477 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006224/0.3597, allocations: 418.8 kB / 1.241 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3597, allocations: 0 / 1.241 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001244/0.361, allocations: 0.6051 MB / 1.241 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.361, allocations: 4 kB / 1.241 GB, free: 8.418 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.361, allocations: 4 kB / 1.241 GB, free: 8.414 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007064/0.3617, allocations: 184.8 kB / 1.242 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.3621, allocations: 67.89 kB / 1.242 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003067/0.3652, allocations: 2.496 MB / 1.244 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.3656, allocations: 24 kB / 1.244 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.563e-05/0.3657, allocations: 16 kB / 1.244 GB, free: 5.484 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002316/0.3659, allocations: 162.3 kB / 1.244 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.219e-05/0.366, allocations: 27.86 kB / 1.244 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005684/0.3666, allocations: 358.1 kB / 1.245 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3666, allocations: 4 kB / 1.245 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.3666, allocations: 0 / 1.245 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3666, allocations: 7.969 kB / 1.245 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.3678, allocations: 0.8101 MB / 1.245 GB, free: 4.051 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3678, allocations: 4 kB / 1.245 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003947/0.3682, allocations: 72 kB / 1.246 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.3682, allocations: 12 kB / 1.246 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.3682, allocations: 0 / 1.246 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.3682, allocations: 4 kB / 1.246 GB, free: 3.961 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3682, allocations: 3.938 kB / 1.246 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000796/0.369, allocations: 0.6111 MB / 1.246 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.3692, allocations: 133 kB / 1.246 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.869e-05/0.3693, allocations: 11.98 kB / 1.246 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.3695, allocations: 15.98 kB / 1.246 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.3696, allocations: 15.92 kB / 1.246 GB, free: 3.133 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.3696, allocations: 8 kB / 1.246 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002355/0.3698, allocations: 188.5 kB / 1.247 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.453e-06/0.3698, allocations: 0 / 1.247 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004311/0.3703, allocations: 87.94 kB / 1.247 GB, free: 2.859 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001712/0.3705, allocations: 119.2 kB / 1.247 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009783/0.3714, allocations: 0.5459 MB / 1.247 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.3715, allocations: 4.062 kB / 1.247 GB, free: 2.168 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002079/0.3717, allocations: 149.9 kB / 1.247 GB, free: 2.023 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.3721, allocations: 61.28 kB / 1.247 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.3737, allocations: 0.8307 MB / 1.248 GB, free: 1.109 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.3742, allocations: 0.7989 MB / 1.249 GB, free: 288 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002291/0.3744, allocations: 74.91 kB / 1.249 GB, free: 212 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.907e-05/0.3745, allocations: 31.42 kB / 1.249 GB, free: 180 kB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.3745, allocations: 0 / 1.249 GB, free: 180 kB / 0.9981 GB Notification: Performance of Templates: time 0.5971/0.9716, allocations: 4.176 MB / 1.253 GB, free: 26.23 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches