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.0007906/0.0007906, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.005267/0.005267, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.551/1.551, allocations: 223.3 MB / 240.3 MB, free: 5.352 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.752/2.752, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003288, allocations: 8 kB / 0.8728 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7512/0.7516, allocations: 153.8 MB / 1.023 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.00582/0.7574, allocations: 3.751 MB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003262/0.7608, allocations: 1.57 MB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.761, allocations: 7.938 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002496/0.7613, allocations: 63.5 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004901/0.7618, allocations: 211.1 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004906/0.7623, allocations: 199.6 kB / 1.029 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006903/0.763, allocations: 0.783 MB / 1.029 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005143/0.7635, allocations: 434.4 kB / 1.03 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.7637, allocations: 187.2 kB / 1.03 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.7641, allocations: 243.2 kB / 1.03 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.235e-05/0.7641, allocations: 20 kB / 1.03 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00034/0.7645, allocations: 191.6 kB / 1.03 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.7646, allocations: 135.5 kB / 1.031 GB, free: 8.172 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.7648, allocations: 192.8 kB / 1.031 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00052/0.7654, allocations: 0.5079 MB / 1.031 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.7654, allocations: 4 kB / 1.031 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.926e-06/0.7654, allocations: 0 / 1.031 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.654e-06/0.7654, allocations: 0 / 1.031 GB, free: 7.465 MB / 0.7794 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.001152/0.7666, allocations: 0.6281 MB / 1.032 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.7666, allocations: 8.031 kB / 1.032 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007147/0.7673, allocations: 104.4 kB / 1.032 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.7677, allocations: 304.1 kB / 1.032 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.765e-05/0.7678, allocations: 59.27 kB / 1.032 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.73e-05/0.7679, allocations: 32.38 kB / 1.032 GB, free: 6.246 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008154/0.7687, allocations: 0.5048 MB / 1.033 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.7687, allocations: 7.938 kB / 1.033 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.166e-05/0.7688, allocations: 16 kB / 1.033 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.462e-05/0.7688, allocations: 28.97 kB / 1.033 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006738/0.7695, allocations: 391.7 kB / 1.033 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.7718, allocations: 2.216 MB / 1.035 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007006/0.7725, allocations: 262.7 kB / 1.036 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000365/0.7729, allocations: 156.8 kB / 1.036 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.7729, allocations: 3.938 kB / 1.036 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.773, allocations: 50.45 kB / 1.036 GB, free: 2.352 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=19): time 1.703e-06/0.773, allocations: 0 / 1.036 GB, free: 2.352 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001487/0.7745, allocations: 0.5846 MB / 1.036 GB, free: 1.719 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.7745, allocations: 55.36 kB / 1.037 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.7747, allocations: 229 kB / 1.037 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.7748, allocations: 29.7 kB / 1.037 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.7749, allocations: 211.6 kB / 1.037 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/0.775, allocations: 67.08 kB / 1.037 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.775, allocations: 25.72 kB / 1.037 GB, free: 1.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.7751, allocations: 330.8 kB / 1.037 GB, free: 0.7383 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.7754, allocations: 95.94 kB / 1.037 GB, free: 0.6445 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.7757, allocations: 187.1 kB / 1.038 GB, free: 432 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004724/0.7761, allocations: 290.6 kB / 1.038 GB, free: 108 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.7761, allocations: 0 / 1.038 GB, free: 108 kB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008736/0.777, allocations: 388.7 kB / 1.038 GB, free: 15.71 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.7772, allocations: 167.5 kB / 1.038 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.7772, allocations: 4 kB / 1.038 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005038/0.7777, allocations: 117.5 kB / 1.039 GB, free: 15.39 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.7779, allocations: 51.97 kB / 1.039 GB, free: 15.34 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002992/0.7809, allocations: 2.826 MB / 1.041 GB, free: 12.25 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.7812, allocations: 31.73 kB / 1.041 GB, free: 12.21 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.7812, allocations: 15.94 kB / 1.041 GB, free: 12.2 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.434e-06/0.7812, allocations: 4 kB / 1.041 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007313/0.782, allocations: 317.7 kB / 1.042 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.782, allocations: 4 kB / 1.042 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002811/0.7823, allocations: 77.11 kB / 1.042 GB, free: 11.8 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.7825, allocations: 63.91 kB / 1.042 GB, free: 11.74 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.7843, allocations: 1.502 MB / 1.043 GB, free: 10.11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.7845, allocations: 31.83 kB / 1.043 GB, free: 10.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.7845, allocations: 12.06 kB / 1.043 GB, free: 10.06 MB / 0.795 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.0002588/0.7848, allocations: 245.6 kB / 1.044 GB, free: 9.812 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.199e-05/0.7849, allocations: 23.7 kB / 1.044 GB, free: 9.789 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.459e-05/0.7849, allocations: 30.19 kB / 1.044 GB, free: 9.758 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.7849, allocations: 3.938 kB / 1.044 GB, free: 9.754 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.7849, allocations: 0 / 1.044 GB, free: 9.754 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.785, allocations: 11.92 kB / 1.044 GB, free: 9.742 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/0.7863, allocations: 0.8415 MB / 1.045 GB, free: 8.82 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.7863, allocations: 0 / 1.045 GB, free: 8.82 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.7865, allocations: 31.97 kB / 1.045 GB, free: 8.789 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003675/0.7869, allocations: 109.6 kB / 1.045 GB, free: 8.676 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.7869, allocations: 4 kB / 1.045 GB, free: 8.672 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/0.7897, allocations: 2.81 MB / 1.047 GB, free: 5.594 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.7897, allocations: 4.031 kB / 1.047 GB, free: 5.59 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007928/0.7905, allocations: 416.7 kB / 1.048 GB, free: 5.156 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.664e-05/0.7906, allocations: 116.8 kB / 1.048 GB, free: 5.023 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.881e-05/0.7906, allocations: 8 kB / 1.048 GB, free: 5.016 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.7908, allocations: 15.98 kB / 1.048 GB, free: 5 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.491e-05/0.7909, allocations: 27.98 kB / 1.048 GB, free: 4.973 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.7909, allocations: 4 kB / 1.048 GB, free: 4.969 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001486/0.7911, allocations: 164.5 kB / 1.048 GB, free: 4.809 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7911, allocations: 0 / 1.048 GB, free: 4.809 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006392/0.7917, allocations: 167.4 kB / 1.048 GB, free: 4.645 MB / 0.795 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.0001422/0.7918, allocations: 109.3 kB / 1.048 GB, free: 4.527 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00196/0.7938, allocations: 0.7698 MB / 1.049 GB, free: 3.719 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.7938, allocations: 4 kB / 1.049 GB, free: 3.715 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0007847/0.7946, allocations: 379.2 kB / 1.049 GB, free: 3.32 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.7951, allocations: 51.45 kB / 1.05 GB, free: 3.27 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.7963, allocations: 0.7411 MB / 1.05 GB, free: 2.496 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.7968, allocations: 0.8184 MB / 1.051 GB, free: 1.652 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001989/0.797, allocations: 50.25 kB / 1.051 GB, free: 1.605 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.101e-05/0.797, allocations: 23.42 kB / 1.051 GB, free: 1.582 MB / 0.795 GB Notification: Performance of SimCode: time 4.81e-07/0.797, allocations: 0 / 1.051 GB, free: 1.582 MB / 0.795 GB Notification: Performance of Templates: time 0.009384/0.8064, allocations: 4.251 MB / 1.055 GB, free: 13.37 MB / 0.8106 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)