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.001301/0.001301, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002182/0.002182, allocations: 290.6 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.93/0.93, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 99.7 kB / 0.5953 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1459, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02477/0.1707, allocations: 22.62 MB / 0.7024 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02596/0.1967, allocations: 17.62 MB / 0.7196 GB, free: 8.219 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002774/0.1995, allocations: 115.4 kB / 0.7197 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.01025/0.2098, allocations: 4.18 MB / 0.7238 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.009341/0.2192, allocations: 3.513 MB / 0.7272 GB, free: 416 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003164/0.2224, allocations: 1.31 MB / 0.7285 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.007076/0.2294, allocations: 5.776 MB / 0.7341 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004809/0.2343, allocations: 3.608 MB / 0.7377 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003442/0.2377, allocations: 2.394 MB / 0.74 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003968/0.2417, allocations: 2.452 MB / 0.7424 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.001006/0.2427, allocations: 372 kB / 0.7427 GB, free: 404 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002419/0.2452, allocations: 1.03 MB / 0.7437 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001374/0.2465, allocations: 1.199 MB / 0.7449 GB, free: 14.16 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.003086/0.2496, allocations: 1.99 MB / 0.7469 GB, free: 12.16 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00592/0.2556, allocations: 5.116 MB / 0.7519 GB, free: 7.027 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2556, allocations: 4 kB / 0.7519 GB, free: 7.023 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2556, allocations: 0 / 0.7519 GB, free: 7.023 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001456/0.2558, allocations: 3.984 kB / 0.7519 GB, free: 7.02 MB / 0.545 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.009618/0.2654, allocations: 4.609 MB / 0.7564 GB, free: 2.297 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.2654, allocations: 8.031 kB / 0.7564 GB, free: 2.289 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004638/0.2659, allocations: 366.3 kB / 0.7567 GB, free: 1.922 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01615/0.2821, allocations: 3.261 MB / 0.7599 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004522/0.2866, allocations: 2.092 MB / 0.7619 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004206/0.2871, allocations: 470 kB / 0.7624 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008139/0.2879, allocations: 235.9 kB / 0.7626 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01175/0.2997, allocations: 4.81 MB / 0.7673 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.839e-05/0.2998, allocations: 7.938 kB / 0.7673 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005669/0.3003, allocations: 108 kB / 0.7674 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001969/0.3005, allocations: 172.8 kB / 0.7676 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0144/0.3149, allocations: 5.191 MB / 0.7727 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2792/0.5942, allocations: 14.48 MB / 0.7868 GB, free: 79.7 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008841/0.6031, allocations: 3.393 MB / 0.7901 GB, free: 78.66 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003524/0.6066, allocations: 1.463 MB / 0.7915 GB, free: 78.22 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/0.6067, allocations: 26.58 kB / 0.7916 GB, free: 78.22 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003775/0.6105, allocations: 1.792 MB / 0.7933 GB, free: 77.6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=163): time 3.828e-06/0.6105, allocations: 0 / 0.7933 GB, free: 77.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=250): time 0.1221/0.7327, allocations: 28.22 MB / 0.8209 GB, free: 65.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.7329, allocations: 0.4894 MB / 0.8214 GB, free: 64.93 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002505/0.7354, allocations: 2.303 MB / 0.8236 GB, free: 63.21 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000289/0.7357, allocations: 73.7 kB / 0.8237 GB, free: 63.14 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007685/0.7364, allocations: 1.433 MB / 0.8251 GB, free: 61.69 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005367/0.737, allocations: 0.8261 MB / 0.8259 GB, free: 60.88 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007363/0.7377, allocations: 412.5 kB / 0.8263 GB, free: 60.46 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.02e-05/0.7378, allocations: 309.1 kB / 0.8266 GB, free: 60.16 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00468/0.7425, allocations: 1.925 MB / 0.8285 GB, free: 58.23 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004767/0.7473, allocations: 2.231 MB / 0.8306 GB, free: 55.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009147/0.7564, allocations: 4.161 MB / 0.8347 GB, free: 51.62 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.7565, allocations: 0 / 0.8347 GB, free: 51.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01645/0.7729, allocations: 6.539 MB / 0.8411 GB, free: 44.98 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.27e-05/0.773, allocations: 148.5 kB / 0.8412 GB, free: 44.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.773, allocations: 4 kB / 0.8412 GB, free: 44.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008928/0.782, allocations: 2.955 MB / 0.8441 GB, free: 41.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/0.7847, allocations: 487.2 kB / 0.8446 GB, free: 41.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0341/0.8188, allocations: 18.86 MB / 0.863 GB, free: 22.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003891/0.8227, allocations: 327.6 kB / 0.8633 GB, free: 22 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002506/0.823, allocations: 87.27 kB / 0.8634 GB, free: 21.92 MB / 0.5606 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.001177/0.8242, allocations: 0.7054 MB / 0.8641 GB, free: 21.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004753/0.8247, allocations: 332.1 kB / 0.8644 GB, free: 20.88 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005985/0.8253, allocations: 388 kB / 0.8648 GB, free: 20.49 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.8253, allocations: 28 kB / 0.8648 GB, free: 20.46 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.358e-05/0.8253, allocations: 8 kB / 0.8648 GB, free: 20.46 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.727e-05/0.8253, allocations: 12.77 kB / 0.8648 GB, free: 20.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003422/0.8288, allocations: 3.619 MB / 0.8683 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.8288, allocations: 7.938 kB / 0.8684 GB, free: 16.81 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002317/0.8311, allocations: 411.4 kB / 0.8687 GB, free: 16.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009062/0.8402, allocations: 2.894 MB / 0.8716 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004494/0.8407, allocations: 54.09 kB / 0.8716 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03595/0.8766, allocations: 18.62 MB / 0.8898 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.8767, allocations: 0.75 kB / 0.8898 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01913/0.8958, allocations: 6.174 MB / 0.8958 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/0.8976, allocations: 0.7 MB / 0.8965 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000841/0.8984, allocations: 48 kB / 0.8966 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003632/0.9021, allocations: 311.6 kB / 0.8969 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001201/0.9033, allocations: 354.7 kB / 0.8972 GB, free: 2.926 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002571/0.9036, allocations: 68.47 kB / 0.8973 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002631/0.9062, allocations: 1.536 MB / 0.8988 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9062, allocations: 0 / 0.8988 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003264/0.9095, allocations: 1.039 MB / 0.8998 GB, free: 292 kB / 0.5762 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.02039/0.9299, allocations: 6.809 MB / 0.9064 GB, free: 9.434 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02735/0.9573, allocations: 7.306 MB / 0.9136 GB, free: 2.055 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.9573, allocations: 0 / 0.9136 GB, free: 2.055 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01824/0.9756, allocations: 4.065 MB / 0.9175 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005352/0.981, allocations: 1.139 MB / 0.9187 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07984/1.061, allocations: 36.88 MB / 0.9547 GB, free: 5.945 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002478/1.063, allocations: 2.235 MB / 0.9569 GB, free: 3.68 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.003003/1.066, allocations: 0.5099 MB / 0.9573 GB, free: 3.164 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00218/1.069, allocations: 1.335 MB / 0.9587 GB, free: 1.828 MB / 0.6387 GB Notification: Performance of SimCode: time 8.11e-07/1.069, allocations: 0 / 0.9587 GB, free: 1.828 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4408/1.509, allocations: 104.3 MB / 1.061 GB, free: 245.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/15.52, allocations: 5.547 kB / 1.061 GB, free: 245.1 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)