Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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: translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008326/0.008326, allocations: 99.06 kB / 15.73 MB, free: 6.059 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.001451/0.001452, allocations: 188.8 kB / 16.67 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.545/1.545, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.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.727/2.727, allocations: 437 MB / 0.7105 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 1.019 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3776, allocations: 151.6 MB / 1.167 GB, free: 6.895 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006168/0.3838, allocations: 4.095 MB / 1.171 GB, free: 2.773 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002694/0.3866, allocations: 1.593 MB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000183/0.3868, allocations: 15.94 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001564/0.3884, allocations: 0.572 MB / 1.173 GB, free: 0.582 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0005283/0.3889, allocations: 242.8 kB / 1.173 GB, free: 352 kB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005799/0.3895, allocations: 215.2 kB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0006131/0.3901, allocations: 0.5414 MB / 1.174 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007054/0.3909, allocations: 473.7 kB / 1.174 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.3911, allocations: 227.3 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004309/0.3915, allocations: 259 kB / 1.175 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.156e-05/0.3916, allocations: 36 kB / 1.175 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000332/0.392, allocations: 163.7 kB / 1.175 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.3921, allocations: 147.7 kB / 1.175 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001938/0.3923, allocations: 195.1 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005936/0.3929, allocations: 0.5253 MB / 1.176 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3929, allocations: 0 / 1.176 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3929, allocations: 0 / 1.176 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.3929, allocations: 0 / 1.176 GB, free: 13.59 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001283/0.3942, allocations: 0.6938 MB / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.3943, allocations: 8.031 kB / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000708/0.395, allocations: 108.6 kB / 1.176 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000407/0.3954, allocations: 303.7 kB / 1.177 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.894e-05/0.3955, allocations: 59.25 kB / 1.177 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.353e-05/0.3956, allocations: 32.38 kB / 1.177 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008197/0.3964, allocations: 0.5009 MB / 1.177 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3964, allocations: 3.938 kB / 1.177 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.106e-05/0.3965, allocations: 16 kB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.073e-05/0.3965, allocations: 32.97 kB / 1.177 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006768/0.3972, allocations: 375.7 kB / 1.178 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002367/0.3996, allocations: 2.228 MB / 1.18 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006758/0.4003, allocations: 254.7 kB / 1.18 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.4006, allocations: 156.8 kB / 1.18 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.4006, allocations: 0 / 1.18 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.4007, allocations: 42.44 kB / 1.18 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=19): time 1.122e-06/0.4007, allocations: 0 / 1.18 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.001474/0.4022, allocations: 0.5657 MB / 1.181 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.4023, allocations: 55.41 kB / 1.181 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002298/0.4025, allocations: 237 kB / 1.181 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.4025, allocations: 25.7 kB / 1.181 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.4027, allocations: 216.2 kB / 1.181 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.4027, allocations: 67.42 kB / 1.181 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.99e-05/0.4028, allocations: 57.66 kB / 1.181 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.403, allocations: 330.8 kB / 1.182 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/0.4032, allocations: 96.8 kB / 1.182 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.4035, allocations: 180.6 kB / 1.182 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004657/0.4039, allocations: 275.6 kB / 1.182 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.404, allocations: 0 / 1.182 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008392/0.4048, allocations: 382.9 kB / 1.183 GB, free: 5.816 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4048, allocations: 4 kB / 1.183 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.4048, allocations: 4 kB / 1.183 GB, free: 5.809 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005088/0.4054, allocations: 105.8 kB / 1.183 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.4056, allocations: 55.91 kB / 1.183 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.4088, allocations: 3.049 MB / 1.186 GB, free: 2.305 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.409, allocations: 39.7 kB / 1.186 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.4091, allocations: 12 kB / 1.186 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003288/0.4094, allocations: 216.7 kB / 1.186 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002659/0.4097, allocations: 187.5 kB / 1.186 GB, free: 1.816 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004503/0.4101, allocations: 270.9 kB / 1.187 GB, free: 1.52 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.843e-06/0.4101, allocations: 4 kB / 1.187 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007438/0.4109, allocations: 340.7 kB / 1.187 GB, free: 1.176 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.4109, allocations: 19.98 kB / 1.187 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.4109, allocations: 7.938 kB / 1.187 GB, free: 1.148 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/0.4112, allocations: 80.8 kB / 1.187 GB, free: 1.066 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.4114, allocations: 55.89 kB / 1.187 GB, free: 1.012 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.4134, allocations: 1.625 MB / 1.189 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.4137, allocations: 27.88 kB / 1.189 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.4137, allocations: 11.94 kB / 1.189 GB, free: 15.21 MB / 0.9512 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001545/0.4139, allocations: 192.2 kB / 1.189 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.938e-05/0.4139, allocations: 23.86 kB / 1.189 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.223e-05/0.414, allocations: 30.17 kB / 1.189 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.414, allocations: 8 kB / 1.189 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.414, allocations: 0 / 1.189 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.414, allocations: 3.938 kB / 1.189 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.4154, allocations: 0.8232 MB / 1.19 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4154, allocations: 4 kB / 1.19 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001347/0.4155, allocations: 31.91 kB / 1.19 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003565/0.4159, allocations: 105.8 kB / 1.19 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.4159, allocations: 8 kB / 1.19 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002896/0.4188, allocations: 3.021 MB / 1.193 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.4188, allocations: 7.969 kB / 1.193 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007651/0.4196, allocations: 415.2 kB / 1.193 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.4197, allocations: 120.9 kB / 1.193 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.4198, allocations: 4 kB / 1.193 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.4199, allocations: 15.92 kB / 1.193 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.055e-05/0.42, allocations: 27.89 kB / 1.193 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.42, allocations: 4 kB / 1.193 GB, free: 9.965 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001533/0.4202, allocations: 164.5 kB / 1.194 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4202, allocations: 0 / 1.194 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006408/0.4209, allocations: 171.5 kB / 1.194 GB, free: 9.637 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001304/0.421, allocations: 109.2 kB / 1.194 GB, free: 9.523 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001924/0.4229, allocations: 0.7526 MB / 1.195 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.4229, allocations: 4 kB / 1.195 GB, free: 8.73 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007562/0.4237, allocations: 373.7 kB / 1.195 GB, free: 8.34 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/0.4242, allocations: 52.56 kB / 1.195 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009947/0.4252, allocations: 0.5806 MB / 1.195 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.4256, allocations: 0.8145 MB / 1.196 GB, free: 6.828 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001862/0.4258, allocations: 54.25 kB / 1.196 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.761e-05/0.4258, allocations: 19.44 kB / 1.196 GB, free: 6.758 MB / 0.9512 GB Notification: Performance of SimCode: time 2e-07/0.4258, allocations: 0 / 1.196 GB, free: 6.758 MB / 0.9512 GB Notification: Performance of Templates: time 0.009045/0.4349, allocations: 4.735 MB / 1.201 GB, free: 2.055 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)