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.001978/0.001978, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002386/0.002386, allocations: 196.7 kB / 16.26 MB, free: 6.629 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.584/1.584, allocations: 222.9 MB / 239.9 MB, free: 4.5 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.884/2.884, allocations: 437 MB / 0.7101 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002635/0.002635, allocations: 71.88 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6896/0.6923, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006543/0.6989, allocations: 4.148 MB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002828/0.7017, allocations: 1.57 MB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.702, allocations: 11.94 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.7036, allocations: 0.5568 MB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005439/0.7042, allocations: 207.1 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.7047, allocations: 201.8 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006546/0.7054, allocations: 0.5528 MB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008135/0.7062, allocations: 0.5037 MB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003134/0.7066, allocations: 239.2 kB / 1.025 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005158/0.7071, allocations: 255.2 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.362e-05/0.7072, allocations: 36 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003221/0.7075, allocations: 167.7 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.7077, allocations: 155.6 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002271/0.7079, allocations: 199.1 kB / 1.025 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006787/0.7086, allocations: 0.5334 MB / 1.026 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.7086, allocations: 0 / 1.026 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.914e-06/0.7086, allocations: 0 / 1.026 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.435e-06/0.7086, allocations: 4 kB / 1.026 GB, free: 9.352 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.001321/0.71, allocations: 0.6728 MB / 1.027 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.71, allocations: 12.03 kB / 1.027 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000734/0.7108, allocations: 108.4 kB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004221/0.7112, allocations: 304.1 kB / 1.027 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.083e-05/0.7113, allocations: 55.27 kB / 1.027 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.7113, allocations: 28.38 kB / 1.027 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009248/0.7123, allocations: 0.5048 MB / 1.028 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.7123, allocations: 7.938 kB / 1.028 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.7123, allocations: 16 kB / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.038e-05/0.7124, allocations: 24.98 kB / 1.028 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007505/0.7132, allocations: 387.6 kB / 1.028 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002792/0.716, allocations: 2.204 MB / 1.03 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000772/0.7167, allocations: 254.6 kB / 1.03 GB, free: 4.441 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004013/0.7172, allocations: 160.7 kB / 1.03 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.7172, allocations: 4 kB / 1.03 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.7173, allocations: 38.52 kB / 1.031 GB, free: 4.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=19): time 2.986e-06/0.7173, allocations: 0 / 1.031 GB, free: 4.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001629/0.7189, allocations: 0.5686 MB / 1.031 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.719, allocations: 63.3 kB / 1.031 GB, free: 3.539 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.7192, allocations: 224.9 kB / 1.031 GB, free: 3.309 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.7193, allocations: 33.7 kB / 1.031 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.7194, allocations: 199.7 kB / 1.032 GB, free: 3.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.7195, allocations: 74.95 kB / 1.032 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.7196, allocations: 49.7 kB / 1.032 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.7198, allocations: 334.8 kB / 1.032 GB, free: 2.605 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000229/0.72, allocations: 92.8 kB / 1.032 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003181/0.7203, allocations: 183.1 kB / 1.032 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000509/0.7209, allocations: 275.2 kB / 1.033 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.7209, allocations: 0 / 1.033 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009166/0.7218, allocations: 378.6 kB / 1.033 GB, free: 1.609 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.7218, allocations: 4.312 kB / 1.033 GB, free: 1.605 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.7218, allocations: 11.98 kB / 1.033 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005355/0.7224, allocations: 113.6 kB / 1.033 GB, free: 1.477 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.7226, allocations: 43.92 kB / 1.033 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003653/0.7263, allocations: 3.06 MB / 1.036 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.7265, allocations: 35.67 kB / 1.036 GB, free: 14.05 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.7266, allocations: 8 kB / 1.036 GB, free: 14.05 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003712/0.727, allocations: 220 kB / 1.036 GB, free: 13.83 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002971/0.7273, allocations: 179.8 kB / 1.036 GB, free: 13.61 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004988/0.7278, allocations: 270.8 kB / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.613e-06/0.7278, allocations: 0 / 1.037 GB, free: 13.32 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008401/0.7286, allocations: 355.9 kB / 1.037 GB, free: 12.96 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.7287, allocations: 10.12 kB / 1.037 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.7287, allocations: 12.25 kB / 1.037 GB, free: 12.94 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003296/0.729, allocations: 76.78 kB / 1.037 GB, free: 12.86 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.7292, allocations: 59.91 kB / 1.037 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002129/0.7314, allocations: 1.602 MB / 1.039 GB, free: 11.06 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.7317, allocations: 27.83 kB / 1.039 GB, free: 11.03 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.7317, allocations: 15.94 kB / 1.039 GB, free: 11.02 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.0001694/0.7319, allocations: 201.2 kB / 1.039 GB, free: 10.81 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.245e-05/0.7319, allocations: 23.72 kB / 1.039 GB, free: 10.79 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.761e-05/0.732, allocations: 30.19 kB / 1.039 GB, free: 10.77 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.732, allocations: 0 / 1.039 GB, free: 10.77 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/0.732, allocations: 8 kB / 1.039 GB, free: 10.76 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.732, allocations: 7.922 kB / 1.039 GB, free: 10.75 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.7336, allocations: 0.8248 MB / 1.04 GB, free: 9.844 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.7336, allocations: 0 / 1.04 GB, free: 9.844 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.7337, allocations: 31.92 kB / 1.04 GB, free: 9.812 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003955/0.7342, allocations: 105.7 kB / 1.04 GB, free: 9.703 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.7342, allocations: 0 / 1.04 GB, free: 9.703 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003353/0.7375, allocations: 3.024 MB / 1.043 GB, free: 6.395 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.7376, allocations: 4.156 kB / 1.043 GB, free: 6.391 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008419/0.7384, allocations: 414.4 kB / 1.043 GB, free: 5.957 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.7386, allocations: 120.7 kB / 1.044 GB, free: 5.82 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.7386, allocations: 8 kB / 1.044 GB, free: 5.812 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.7388, allocations: 7.984 kB / 1.044 GB, free: 5.805 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.63e-05/0.7389, allocations: 19.97 kB / 1.044 GB, free: 5.785 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.7389, allocations: 8 kB / 1.044 GB, free: 5.777 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002014/0.7391, allocations: 164.5 kB / 1.044 GB, free: 5.617 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7391, allocations: 0 / 1.044 GB, free: 5.617 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006904/0.7398, allocations: 171.4 kB / 1.044 GB, free: 5.449 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.0001557/0.74, allocations: 103.1 kB / 1.044 GB, free: 5.34 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002246/0.7422, allocations: 0.7718 MB / 1.045 GB, free: 4.531 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.7423, allocations: 0 / 1.045 GB, free: 4.531 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0008749/0.7431, allocations: 382.6 kB / 1.045 GB, free: 4.133 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.7436, allocations: 63.62 kB / 1.045 GB, free: 4.07 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.7448, allocations: 0.7237 MB / 1.046 GB, free: 3.312 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.7454, allocations: 0.8068 MB / 1.047 GB, free: 2.48 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002062/0.7456, allocations: 54.25 kB / 1.047 GB, free: 2.426 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.169e-05/0.7456, allocations: 19.44 kB / 1.047 GB, free: 2.406 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.7456, allocations: 0 / 1.047 GB, free: 2.406 MB / 0.795 GB Notification: Performance of Templates: time 0.01021/0.7559, allocations: 4.55 MB / 1.051 GB, free: 13.89 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=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)