Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_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.004728/0.004728, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001063/0.001063, allocations: 191.2 kB / 16.67 MB, free: 5.52 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002169/0.002169, allocations: 278.9 kB / 290.8 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9248/0.9248, allocations: 169.2 MB / 0.4983 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003056/0.003056, allocations: 95.84 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4061, allocations: 86.98 MB / 0.7659 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02333/0.4295, allocations: 22.62 MB / 0.788 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0235/0.4531, allocations: 17.64 MB / 0.8053 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002567/0.4557, allocations: 111.4 kB / 0.8054 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.4658, allocations: 4.159 MB / 0.8094 GB, free: 7.164 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.4768, allocations: 3.584 MB / 0.8129 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003803/0.4806, allocations: 1.325 MB / 0.8142 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007665/0.4883, allocations: 5.8 MB / 0.8199 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005203/0.4935, allocations: 3.588 MB / 0.8234 GB, free: 8.781 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004133/0.4977, allocations: 2.48 MB / 0.8258 GB, free: 6.293 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004249/0.5019, allocations: 2.44 MB / 0.8282 GB, free: 3.844 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001466/0.5034, allocations: 368 kB / 0.8285 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.5064, allocations: 1.03 MB / 0.8295 GB, free: 2.453 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001537/0.508, allocations: 1.203 MB / 0.8307 GB, free: 1.246 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.003644/0.5116, allocations: 1.998 MB / 0.8327 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.005919/0.5176, allocations: 5.186 MB / 0.8377 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5176, allocations: 0 / 0.8377 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5176, allocations: 0 / 0.8377 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.428e-05/0.5177, allocations: 0 / 0.8377 GB, free: 10.04 MB / 0.6075 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.009032/0.5267, allocations: 4.605 MB / 0.8422 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.5268, allocations: 8.031 kB / 0.8422 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004318/0.5272, allocations: 362.3 kB / 0.8426 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01457/0.5418, allocations: 3.269 MB / 0.8458 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004633/0.5465, allocations: 2.232 MB / 0.848 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004042/0.5469, allocations: 470 kB / 0.8484 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009217/0.5478, allocations: 232 kB / 0.8486 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.5592, allocations: 4.814 MB / 0.8533 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.619e-05/0.5593, allocations: 0 / 0.8533 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005033/0.5598, allocations: 99.98 kB / 0.8534 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001843/0.56, allocations: 172.8 kB / 0.8536 GB, free: 9.387 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01285/0.5729, allocations: 5.202 MB / 0.8587 GB, free: 4.168 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02079/0.5937, allocations: 14.39 MB / 0.8727 GB, free: 4.613 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008994/0.6027, allocations: 3.387 MB / 0.876 GB, free: 1.223 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003292/0.606, allocations: 1.471 MB / 0.8775 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001404/0.6062, allocations: 25.28 kB / 0.8775 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003795/0.61, allocations: 1.798 MB / 0.8792 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=163): time 3.957e-06/0.61, allocations: 0 / 0.8792 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of matching and sorting (n=250): time 0.1127/0.7227, allocations: 28.24 MB / 0.9068 GB, free: 1.391 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002102/0.7229, allocations: 0.4928 MB / 0.9073 GB, free: 0.7891 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003172/0.7261, allocations: 2.293 MB / 0.9095 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0003676/0.7265, allocations: 77.7 kB / 0.9096 GB, free: 14.4 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.7277, allocations: 1.43 MB / 0.911 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008457/0.7285, allocations: 0.824 MB / 0.9118 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009585/0.7295, allocations: 412.4 kB / 0.9122 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.7296, allocations: 305.1 kB / 0.9125 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004829/0.7344, allocations: 1.929 MB / 0.9144 GB, free: 9.477 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004987/0.7394, allocations: 2.235 MB / 0.9166 GB, free: 7.156 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009473/0.7489, allocations: 4.161 MB / 0.9206 GB, free: 2.859 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.7489, allocations: 4 kB / 0.9206 GB, free: 2.855 MB / 0.6856 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01742/0.7664, allocations: 6.531 MB / 0.927 GB, free: 12.23 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.7665, allocations: 148.5 kB / 0.9272 GB, free: 12.05 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/0.7665, allocations: 7.984 kB / 0.9272 GB, free: 12.04 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01002/0.7766, allocations: 2.934 MB / 0.93 GB, free: 9.109 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002781/0.7794, allocations: 487.2 kB / 0.9305 GB, free: 8.633 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.039/0.8184, allocations: 18.83 MB / 0.9489 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/0.8221, allocations: 323.5 kB / 0.9492 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003664/0.8225, allocations: 91.97 kB / 0.9493 GB, free: 5.137 MB / 0.7169 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.001493/0.824, allocations: 0.7026 MB / 0.95 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006488/0.8246, allocations: 328.1 kB / 0.9503 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006492/0.8253, allocations: 388 kB / 0.9506 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/0.8253, allocations: 28 kB / 0.9507 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.49e-05/0.8253, allocations: 12 kB / 0.9507 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.8254, allocations: 11.95 kB / 0.9507 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004555/0.8299, allocations: 3.616 MB / 0.9542 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.83, allocations: 0 / 0.9542 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002337/0.8323, allocations: 423.3 kB / 0.9546 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009286/0.8416, allocations: 2.868 MB / 0.9574 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002969/0.8419, allocations: 51.97 kB / 0.9575 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3315/1.173, allocations: 18.6 MB / 0.9756 GB, free: 184.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.173, allocations: 0 / 0.9756 GB, free: 184.7 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/1.189, allocations: 6.179 MB / 0.9817 GB, free: 183 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/1.191, allocations: 0.6986 MB / 0.9824 GB, free: 182.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004639/1.191, allocations: 54.23 kB / 0.9824 GB, free: 182.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002729/1.194, allocations: 313.6 kB / 0.9827 GB, free: 182.6 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001297/1.195, allocations: 352.5 kB / 0.9831 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002012/1.195, allocations: 71.14 kB / 0.9831 GB, free: 182.5 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00178/1.197, allocations: 1.532 MB / 0.9846 GB, free: 181.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/1.197, allocations: 3.875 kB / 0.9846 GB, free: 181.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002394/1.2, allocations: 1.041 MB / 0.9856 GB, free: 181.8 MB / 0.7325 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.0148/1.214, allocations: 6.805 MB / 0.9923 GB, free: 179.4 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01958/1.234, allocations: 6.477 MB / 0.9986 GB, free: 177 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/1.234, allocations: 4 kB / 0.9986 GB, free: 177 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01427/1.248, allocations: 4.06 MB / 1.003 GB, free: 173.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00373/1.252, allocations: 1.135 MB / 1.004 GB, free: 172.5 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05641/1.309, allocations: 31.85 MB / 1.035 GB, free: 140.4 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/1.31, allocations: 2.235 MB / 1.037 GB, free: 138.1 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002031/1.312, allocations: 0.5172 MB / 1.037 GB, free: 137.6 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/1.314, allocations: 1.339 MB / 1.039 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of SimCode: time 7.51e-07/1.314, allocations: 0 / 1.039 GB, free: 136.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1253/1.439, allocations: 102.8 MB / 1.139 GB, free: 34.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.69/20.13, allocations: 3.984 kB / 1.139 GB, free: 34.68 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)