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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001392/0.001392, allocations: 104.8 kB / 16.35 MB, free: 6.289 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.001456/0.001457, allocations: 192.7 kB / 17.29 MB, free: 5.863 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.434/2.434, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 68.38 kB / 0.8707 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3461, allocations: 151.6 MB / 1.019 GB, free: 9.859 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006108/0.3523, allocations: 4.11 MB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002882/0.3552, allocations: 1.597 MB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000231/0.3554, allocations: 11.94 kB / 1.024 GB, free: 4.109 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.3572, allocations: 0.5837 MB / 1.025 GB, free: 3.527 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0006568/0.3579, allocations: 234.9 kB / 1.025 GB, free: 3.297 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006138/0.3585, allocations: 215.5 kB / 1.025 GB, free: 3.086 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0006739/0.3592, allocations: 0.5491 MB / 1.026 GB, free: 2.535 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007149/0.3599, allocations: 477.8 kB / 1.026 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.3602, allocations: 227.3 kB / 1.027 GB, free: 1.844 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003985/0.3606, allocations: 247.1 kB / 1.027 GB, free: 1.602 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.305e-05/0.3607, allocations: 36 kB / 1.027 GB, free: 1.566 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003165/0.361, allocations: 163.7 kB / 1.027 GB, free: 1.406 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002183/0.3612, allocations: 155.6 kB / 1.027 GB, free: 1.254 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002928/0.3615, allocations: 195.1 kB / 1.027 GB, free: 1.062 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0008141/0.3623, allocations: 0.5179 MB / 1.028 GB, free: 0.543 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.3624, allocations: 0 / 1.028 GB, free: 0.543 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.856e-06/0.3624, allocations: 4 kB / 1.028 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.135e-05/0.3624, allocations: 0 / 1.028 GB, free: 0.5391 MB / 0.795 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.001647/0.3641, allocations: 0.6787 MB / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.3641, allocations: 8.031 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007877/0.3649, allocations: 108.4 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005687/0.3655, allocations: 303.6 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.3656, allocations: 63.19 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.994e-05/0.3657, allocations: 32.38 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009459/0.3666, allocations: 0.5009 MB / 1.029 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3667, allocations: 0 / 1.029 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.673e-05/0.3667, allocations: 19.98 kB / 1.029 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.834e-05/0.3668, allocations: 32.98 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007819/0.3676, allocations: 383.6 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003219/0.3708, allocations: 2.192 MB / 1.032 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007811/0.3716, allocations: 254.6 kB / 1.032 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.372, allocations: 156.8 kB / 1.032 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.768e-05/0.3721, allocations: 3.953 kB / 1.032 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.3722, allocations: 34.56 kB / 1.032 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.934e-06/0.3722, allocations: 0 / 1.032 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.00154/0.3737, allocations: 0.5692 MB / 1.033 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.3738, allocations: 59.34 kB / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.374, allocations: 236.9 kB / 1.033 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.374, allocations: 29.7 kB / 1.033 GB, free: 10.47 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.3742, allocations: 207.7 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.361e-05/0.3743, allocations: 67.02 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.3744, allocations: 49.7 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3745, allocations: 330.8 kB / 1.034 GB, free: 9.809 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.3747, allocations: 96.8 kB / 1.034 GB, free: 9.711 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.375, allocations: 184.1 kB / 1.034 GB, free: 9.492 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004658/0.3755, allocations: 278.6 kB / 1.034 GB, free: 9.188 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3755, allocations: 0 / 1.034 GB, free: 9.188 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008279/0.3763, allocations: 380.8 kB / 1.035 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3764, allocations: 7.938 kB / 1.035 GB, free: 8.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3764, allocations: 4 kB / 1.035 GB, free: 8.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000516/0.3769, allocations: 113.7 kB / 1.035 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.3771, allocations: 51.91 kB / 1.035 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003235/0.3804, allocations: 3.055 MB / 1.038 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.3806, allocations: 27.83 kB / 1.038 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.3806, allocations: 8 kB / 1.038 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003215/0.381, allocations: 220 kB / 1.038 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002518/0.3812, allocations: 183.1 kB / 1.038 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004411/0.3817, allocations: 279.5 kB / 1.039 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.3817, allocations: 4 kB / 1.039 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007316/0.3824, allocations: 342.1 kB / 1.039 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.3825, allocations: 16 kB / 1.039 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-06/0.3825, allocations: 0 / 1.039 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/0.3828, allocations: 80.78 kB / 1.039 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.383, allocations: 55.91 kB / 1.039 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.3849, allocations: 1.624 MB / 1.041 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002449/0.3852, allocations: 27.83 kB / 1.041 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.3852, allocations: 11.94 kB / 1.041 GB, free: 2.203 MB / 0.8106 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.0001438/0.3854, allocations: 196.2 kB / 1.041 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.341e-05/0.3854, allocations: 23.72 kB / 1.041 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.708e-05/0.3855, allocations: 26.19 kB / 1.041 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3855, allocations: 8 kB / 1.041 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3855, allocations: 0 / 1.041 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.3855, allocations: 7.922 kB / 1.041 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.3869, allocations: 0.8329 MB / 1.042 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3869, allocations: 0 / 1.042 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.3871, allocations: 31.92 kB / 1.042 GB, free: 1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003587/0.3875, allocations: 101.7 kB / 1.042 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.3875, allocations: 4 kB / 1.042 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.3904, allocations: 3.02 MB / 1.045 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3905, allocations: 7.969 kB / 1.045 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007623/0.3912, allocations: 407.1 kB / 1.045 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.3914, allocations: 124.7 kB / 1.045 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.3914, allocations: 3.938 kB / 1.045 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.3916, allocations: 15.98 kB / 1.045 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.762e-05/0.3917, allocations: 23.97 kB / 1.045 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.3917, allocations: 8 kB / 1.045 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001431/0.3918, allocations: 164.5 kB / 1.046 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3918, allocations: 0 / 1.046 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006432/0.3925, allocations: 163.4 kB / 1.046 GB, free: 12.64 MB / 0.8262 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.0001365/0.3926, allocations: 109.2 kB / 1.046 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001868/0.3945, allocations: 0.7602 MB / 1.047 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3945, allocations: 0 / 1.047 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008258/0.3954, allocations: 369.7 kB / 1.047 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.3958, allocations: 57.89 kB / 1.047 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.3971, allocations: 0.5675 MB / 1.048 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.3976, allocations: 0.8186 MB / 1.048 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001697/0.3977, allocations: 58.23 kB / 1.048 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.41e-05/0.3978, allocations: 23.44 kB / 1.048 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of SimCode: time 4.2e-07/0.3978, allocations: 0 / 1.048 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of Templates: time 0.009597/0.4074, allocations: 4.67 MB / 1.053 GB, free: 5.121 MB / 0.8262 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 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)