Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001181, 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.001178/0.001178, allocations: 194.1 kB / 16.25 MB, free: 6.621 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.38/1.38, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.444/2.444, allocations: 390.2 MB / 0.6644 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 59.91 kB / 0.8121 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.629/0.6304, allocations: 140.4 MB / 0.9492 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02212/0.6526, allocations: 22.43 MB / 0.9711 GB, free: 7.984 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02592/0.6785, allocations: 17.45 MB / 0.9882 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003695/0.6823, allocations: 101.8 kB / 0.9883 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0106/0.6929, allocations: 3.936 MB / 0.9921 GB, free: 6.109 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.7037, allocations: 3.2 MB / 0.9952 GB, free: 2.906 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003498/0.7072, allocations: 1.18 MB / 0.9964 GB, free: 1.73 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008495/0.7157, allocations: 5.801 MB / 1.002 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006577/0.7224, allocations: 4.022 MB / 1.006 GB, free: 7.816 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004369/0.7267, allocations: 2.456 MB / 1.008 GB, free: 5.352 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004677/0.7314, allocations: 2.522 MB / 1.011 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001438/0.7329, allocations: 368 kB / 1.011 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00311/0.736, allocations: 1.037 MB / 1.012 GB, free: 1.422 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.00248/0.7385, allocations: 1.192 MB / 1.013 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.004197/0.7427, allocations: 1.994 MB / 1.015 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.007257/0.75, allocations: 5.186 MB / 1.02 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.75, allocations: 0 / 1.02 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.823e-06/0.7501, allocations: 0 / 1.02 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001787/0.7502, allocations: 0 / 1.02 GB, free: 9.02 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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01206/0.7623, allocations: 4.62 MB / 1.025 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.7624, allocations: 8.031 kB / 1.025 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008293/0.7632, allocations: 366.3 kB / 1.025 GB, free: 3.91 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01685/0.7801, allocations: 3.257 MB / 1.028 GB, free: 0.6445 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005076/0.7852, allocations: 2.088 MB / 1.03 GB, free: 14.49 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004542/0.7856, allocations: 474 kB / 1.031 GB, free: 13.96 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00094/0.7866, allocations: 228 kB / 1.031 GB, free: 13.74 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01216/0.7988, allocations: 4.814 MB / 1.036 GB, free: 8.777 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.922e-05/0.7989, allocations: 3.938 kB / 1.036 GB, free: 8.773 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005409/0.7994, allocations: 112 kB / 1.036 GB, free: 8.664 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002073/0.7996, allocations: 164.8 kB / 1.036 GB, free: 8.5 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01328/0.8129, allocations: 5.194 MB / 1.041 GB, free: 3.289 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02226/0.8352, allocations: 14.49 MB / 1.055 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009773/0.845, allocations: 3.392 MB / 1.059 GB, free: 216 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003593/0.8486, allocations: 1.471 MB / 1.06 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.8488, allocations: 21.28 kB / 1.06 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004202/0.853, allocations: 1.792 MB / 1.062 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 5.15e-06/0.853, allocations: 0 / 1.062 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.122/0.975, allocations: 28.21 MB / 1.089 GB, free: 448 kB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002387/0.9753, allocations: 0.4928 MB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003514/0.9788, allocations: 2.3 MB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0003986/0.9792, allocations: 77.7 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001215/0.9805, allocations: 1.438 MB / 1.094 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009171/0.9814, allocations: 0.8162 MB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.9828, allocations: 412.5 kB / 1.095 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.9829, allocations: 301.1 kB / 1.095 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005389/0.9883, allocations: 1.933 MB / 1.097 GB, free: 8.512 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005446/0.9938, allocations: 2.231 MB / 1.099 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/1.004, allocations: 4.161 MB / 1.103 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/1.004, allocations: 4 kB / 1.103 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01871/1.023, allocations: 6.531 MB / 1.11 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.665e-05/1.023, allocations: 148.5 kB / 1.11 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/1.023, allocations: 8.344 kB / 1.11 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/1.033, allocations: 2.949 MB / 1.113 GB, free: 8.125 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002941/1.036, allocations: 491.2 kB / 1.113 GB, free: 7.645 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04056/1.077, allocations: 18.85 MB / 1.132 GB, free: 4.543 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004068/1.081, allocations: 323.6 kB / 1.132 GB, free: 4.227 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004268/1.081, allocations: 87.97 kB / 1.132 GB, free: 4.141 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * 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): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.001615/1.083, allocations: 0.7105 MB / 1.133 GB, free: 3.422 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007335/1.084, allocations: 332.2 kB / 1.133 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008225/1.085, allocations: 384.1 kB / 1.133 GB, free: 2.711 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/1.085, allocations: 31.88 kB / 1.133 GB, free: 2.68 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-05/1.085, allocations: 8 kB / 1.133 GB, free: 2.672 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.147e-05/1.085, allocations: 11.95 kB / 1.133 GB, free: 2.66 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005503/1.09, allocations: 3.628 MB / 1.137 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.363e-05/1.09, allocations: 4 kB / 1.137 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002547/1.093, allocations: 415.3 kB / 1.137 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01003/1.103, allocations: 2.892 MB / 1.14 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003751/1.103, allocations: 51.97 kB / 1.14 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0396/1.143, allocations: 18.62 MB / 1.158 GB, free: 8.688 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/1.143, allocations: 0 / 1.158 GB, free: 8.688 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01819/1.161, allocations: 6.177 MB / 1.164 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001816/1.163, allocations: 0.6961 MB / 1.165 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008364/1.164, allocations: 51.92 kB / 1.165 GB, free: 1.707 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003836/1.168, allocations: 315.5 kB / 1.165 GB, free: 1.398 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001571/1.169, allocations: 358.7 kB / 1.166 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003121/1.17, allocations: 67.97 kB / 1.166 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002993/1.173, allocations: 1.54 MB / 1.167 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.4e-07/1.173, allocations: 0 / 1.167 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00385/1.176, allocations: 1.047 MB / 1.168 GB, free: 14.4 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01897/1.195, allocations: 6.798 MB / 1.175 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02549/1.221, allocations: 7.304 MB / 1.182 GB, free: 164 kB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/1.221, allocations: 0 / 1.182 GB, free: 164 kB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.01688/1.238, allocations: 4.057 MB / 1.186 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004945/1.243, allocations: 1.141 MB / 1.187 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0806/1.323, allocations: 38.11 MB / 1.224 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002383/1.326, allocations: 2.231 MB / 1.227 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002675/1.329, allocations: 0.5099 MB / 1.227 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/1.331, allocations: 1.339 MB / 1.228 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of SimCode: time 7.42e-07/1.331, allocations: 0 / 1.228 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.807/2.138, allocations: 102.8 MB / 1.329 GB, free: 244.9 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/2.138, allocations: 244 kB / 1.329 GB, free: 244.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.218/7.356, allocations: 0 / 1.329 GB, free: 244.6 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)