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.0009881/0.0009881, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001112/0.001112, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.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.736/2.736, allocations: 437.7 MB / 0.7117 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005305/0.0005307, allocations: 12 kB / 0.8722 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8011/0.8016, allocations: 153.8 MB / 1.022 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005288/0.807, allocations: 3.604 MB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00267/0.8097, allocations: 1.489 MB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002236/0.8099, allocations: 15.94 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002886/0.8102, allocations: 63.48 kB / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005144/0.8108, allocations: 179.2 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005177/0.8113, allocations: 175.6 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006598/0.812, allocations: 0.6192 MB / 1.028 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.8125, allocations: 389.7 kB / 1.029 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.8128, allocations: 179.3 kB / 1.029 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004525/0.8132, allocations: 239.2 kB / 1.029 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.8133, allocations: 20 kB / 1.029 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.8135, allocations: 83.88 kB / 1.029 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.8137, allocations: 123.7 kB / 1.029 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.724e-05/0.8138, allocations: 85.52 kB / 1.029 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.8142, allocations: 404.9 kB / 1.03 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.8142, allocations: 3.938 kB / 1.03 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.794e-06/0.8142, allocations: 0 / 1.03 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.8142, allocations: 4 kB / 1.03 GB, free: 8.336 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.001131/0.8154, allocations: 0.624 MB / 1.03 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.8154, allocations: 8.562 kB / 1.03 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006953/0.8161, allocations: 111.4 kB / 1.031 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004607/0.8166, allocations: 290.5 kB / 1.031 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.8167, allocations: 54.66 kB / 1.031 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.645e-05/0.8168, allocations: 35.98 kB / 1.031 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008825/0.8176, allocations: 0.5085 MB / 1.031 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.8177, allocations: 0 / 1.031 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.058e-05/0.8177, allocations: 12 kB / 1.031 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.041e-05/0.8178, allocations: 32.98 kB / 1.031 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000679/0.8185, allocations: 387.7 kB / 1.032 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002563/0.821, allocations: 2.216 MB / 1.034 GB, free: 3.727 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006881/0.8217, allocations: 266.6 kB / 1.034 GB, free: 3.457 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.8221, allocations: 156.8 kB / 1.034 GB, free: 3.301 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.8222, allocations: 11.95 kB / 1.034 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.8222, allocations: 34.5 kB / 1.034 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/0.8222, allocations: 0 / 1.034 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001461/0.8237, allocations: 0.5887 MB / 1.035 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.8237, allocations: 55.39 kB / 1.035 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.824, allocations: 225 kB / 1.035 GB, free: 2.312 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.824, allocations: 25.7 kB / 1.035 GB, free: 2.281 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.8242, allocations: 219.6 kB / 1.036 GB, free: 2.062 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.602e-05/0.8242, allocations: 63.11 kB / 1.036 GB, free: 2 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.175e-05/0.8243, allocations: 0 / 1.036 GB, free: 2 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.8244, allocations: 338.8 kB / 1.036 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.8247, allocations: 95.94 kB / 1.036 GB, free: 1.566 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002631/0.8249, allocations: 191 kB / 1.036 GB, free: 1.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002296/0.8252, allocations: 108 kB / 1.036 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.8252, allocations: 3.938 kB / 1.036 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008143/0.826, allocations: 392.3 kB / 1.037 GB, free: 0.8359 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.8261, allocations: 161.9 kB / 1.037 GB, free: 0.6406 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.8261, allocations: 4 kB / 1.037 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004907/0.8266, allocations: 105.6 kB / 1.037 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.8268, allocations: 55.91 kB / 1.037 GB, free: 484 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002956/0.8298, allocations: 2.822 MB / 1.04 GB, free: 13.38 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.8301, allocations: 35.73 kB / 1.04 GB, free: 13.34 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.8301, allocations: 12 kB / 1.04 GB, free: 13.33 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.947e-06/0.8301, allocations: 7.953 kB / 1.04 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000713/0.8308, allocations: 313.7 kB / 1.04 GB, free: 13.02 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.8309, allocations: 4 kB / 1.04 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/0.8311, allocations: 88.88 kB / 1.04 GB, free: 12.92 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.8314, allocations: 51.97 kB / 1.04 GB, free: 12.87 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.8332, allocations: 1.496 MB / 1.042 GB, free: 11.24 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.8334, allocations: 27.91 kB / 1.042 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.8334, allocations: 15.98 kB / 1.042 GB, free: 11.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002604/0.8337, allocations: 245 kB / 1.042 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.49e-05/0.8338, allocations: 27.66 kB / 1.042 GB, free: 10.92 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.213e-05/0.8338, allocations: 30.17 kB / 1.042 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.8338, allocations: 4 kB / 1.042 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.8338, allocations: 4 kB / 1.042 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.8339, allocations: 3.938 kB / 1.042 GB, free: 10.88 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.8352, allocations: 0.8443 MB / 1.043 GB, free: 9.957 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.8352, allocations: 0 / 1.043 GB, free: 9.957 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.8354, allocations: 31.98 kB / 1.043 GB, free: 9.926 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003504/0.8357, allocations: 105.8 kB / 1.043 GB, free: 9.816 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.8358, allocations: 16 kB / 1.043 GB, free: 9.801 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002702/0.8385, allocations: 2.791 MB / 1.046 GB, free: 6.742 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.8385, allocations: 0 / 1.046 GB, free: 6.742 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007633/0.8393, allocations: 426.7 kB / 1.046 GB, free: 6.301 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.8394, allocations: 124.9 kB / 1.046 GB, free: 6.16 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.8394, allocations: 4 kB / 1.046 GB, free: 6.156 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.8396, allocations: 12 kB / 1.046 GB, free: 6.145 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.752e-05/0.8397, allocations: 23.95 kB / 1.046 GB, free: 6.121 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.8397, allocations: 4 kB / 1.046 GB, free: 6.117 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001576/0.8399, allocations: 164.5 kB / 1.046 GB, free: 5.961 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.176e-06/0.8399, allocations: 0 / 1.046 GB, free: 5.961 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007209/0.8406, allocations: 175.3 kB / 1.047 GB, free: 5.789 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001547/0.8408, allocations: 103.2 kB / 1.047 GB, free: 5.676 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001849/0.8426, allocations: 0.766 MB / 1.047 GB, free: 4.871 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.8427, allocations: 0 / 1.047 GB, free: 4.871 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0007291/0.8434, allocations: 373.7 kB / 1.048 GB, free: 4.48 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004561/0.8439, allocations: 54.33 kB / 1.048 GB, free: 4.426 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.8451, allocations: 0.702 MB / 1.049 GB, free: 3.691 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004351/0.8455, allocations: 0.8184 MB / 1.049 GB, free: 2.848 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002205/0.8457, allocations: 50.25 kB / 1.049 GB, free: 2.801 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.344e-05/0.8458, allocations: 23.44 kB / 1.049 GB, free: 2.777 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.8458, allocations: 0 / 1.049 GB, free: 2.777 MB / 0.795 GB Notification: Performance of Templates: time 0.009215/0.855, allocations: 4.146 MB / 1.053 GB, free: 14.67 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)