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: translateModel(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001498, allocations: 104.9 kB / 16.4 MB, free: 6.379 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.001729/0.001729, allocations: 184.3 kB / 17.33 MB, free: 5.852 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.442/1.442, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002221/0.002221, allocations: 298.6 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9431/0.9431, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002754/0.002754, allocations: 91.86 kB / 0.6821 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.601/0.6037, allocations: 86.98 MB / 0.7671 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.04106/0.6449, allocations: 22.62 MB / 0.7892 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0393/0.6842, allocations: 17.63 MB / 0.8064 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004265/0.6885, allocations: 111.4 kB / 0.8065 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01727/0.7059, allocations: 4.18 MB / 0.8106 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01706/0.723, allocations: 3.573 MB / 0.8141 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006281/0.7293, allocations: 1.32 MB / 0.8153 GB, free: 2.309 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0133/0.7426, allocations: 5.804 MB / 0.821 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009143/0.7518, allocations: 3.583 MB / 0.8245 GB, free: 8.832 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006492/0.7583, allocations: 2.484 MB / 0.8269 GB, free: 6.34 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007346/0.7657, allocations: 2.444 MB / 0.8293 GB, free: 3.887 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.002003/0.7678, allocations: 372 kB / 0.8297 GB, free: 3.523 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004611/0.7724, allocations: 1.034 MB / 0.8307 GB, free: 2.488 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.002725/0.7752, allocations: 1.196 MB / 0.8319 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.005543/0.7807, allocations: 1.994 MB / 0.8338 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01152/0.7923, allocations: 5.179 MB / 0.8389 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.7923, allocations: 0 / 0.8389 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.874e-06/0.7924, allocations: 0 / 0.8389 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0002123/0.7926, allocations: 0 / 0.8389 GB, free: 10.09 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.01975/0.8123, allocations: 4.612 MB / 0.8434 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.8124, allocations: 11.97 kB / 0.8434 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02921/0.8417, allocations: 3.273 MB / 0.8466 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00805/0.8497, allocations: 2.224 MB / 0.8487 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007424/0.8505, allocations: 470.3 kB / 0.8492 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001352/0.8519, allocations: 235.9 kB / 0.8494 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02132/0.8732, allocations: 4.81 MB / 0.8541 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/0.8734, allocations: 4 kB / 0.8541 GB, free: 10.06 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001014/0.8744, allocations: 104 kB / 0.8542 GB, free: 9.961 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003543/0.8748, allocations: 168.8 kB / 0.8544 GB, free: 9.793 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02569/0.9005, allocations: 5.198 MB / 0.8595 GB, free: 4.578 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03857/0.9391, allocations: 14.39 MB / 0.8735 GB, free: 5.023 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0178/0.957, allocations: 3.386 MB / 0.8768 GB, free: 1.633 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007067/0.9641, allocations: 1.471 MB / 0.8782 GB, free: 164 kB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001888/0.9643, allocations: 25.28 kB / 0.8783 GB, free: 136 kB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007877/0.9722, allocations: 1.797 MB / 0.88 GB, free: 14.27 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=163): time 6.953e-06/0.9723, allocations: 0 / 0.88 GB, free: 14.27 MB / 0.6544 GB Notification: Performance of matching and sorting (n=250): time 0.1482/1.12, allocations: 28.25 MB / 0.9076 GB, free: 1.801 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002493/1.121, allocations: 0.4889 MB / 0.9081 GB, free: 1.203 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00337/1.124, allocations: 2.296 MB / 0.9103 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0003489/1.124, allocations: 81.69 kB / 0.9104 GB, free: 14.8 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001188/1.126, allocations: 1.43 MB / 0.9118 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008574/1.127, allocations: 0.8162 MB / 0.9126 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009938/1.128, allocations: 420.4 kB / 0.913 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.000101/1.128, allocations: 301.1 kB / 0.9133 GB, free: 11.82 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005421/1.133, allocations: 1.933 MB / 0.9152 GB, free: 9.883 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005706/1.139, allocations: 2.235 MB / 0.9174 GB, free: 7.562 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01098/1.15, allocations: 4.161 MB / 0.9214 GB, free: 3.266 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/1.15, allocations: 0 / 0.9214 GB, free: 3.266 MB / 0.6856 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01937/1.169, allocations: 6.535 MB / 0.9278 GB, free: 12.64 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/1.169, allocations: 148.5 kB / 0.9279 GB, free: 12.46 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/1.169, allocations: 8 kB / 0.928 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01037/1.18, allocations: 2.922 MB / 0.9308 GB, free: 9.527 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002986/1.183, allocations: 487.2 kB / 0.9313 GB, free: 9.051 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04188/1.225, allocations: 18.85 MB / 0.9497 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00417/1.229, allocations: 323.6 kB / 0.95 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004274/1.229, allocations: 87.97 kB / 0.9501 GB, free: 5.547 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.001683/1.231, allocations: 0.7073 MB / 0.9508 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007552/1.232, allocations: 332.1 kB / 0.9511 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008884/1.233, allocations: 384.1 kB / 0.9514 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/1.233, allocations: 24 kB / 0.9515 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.336e-05/1.233, allocations: 11.98 kB / 0.9515 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-05/1.233, allocations: 15.95 kB / 0.9515 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00507/1.238, allocations: 3.62 MB / 0.955 GB, free: 404 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/1.238, allocations: 0 / 0.955 GB, free: 404 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002599/1.241, allocations: 419.4 kB / 0.9554 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01019/1.251, allocations: 2.868 MB / 0.9582 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004128/1.251, allocations: 51.97 kB / 0.9583 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3853/1.636, allocations: 18.61 MB / 0.9764 GB, free: 185.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.636, allocations: 0 / 0.9764 GB, free: 185.6 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01766/1.654, allocations: 6.183 MB / 0.9825 GB, free: 183.9 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/1.656, allocations: 0.6942 MB / 0.9832 GB, free: 183.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005484/1.656, allocations: 51.58 kB / 0.9832 GB, free: 183.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003132/1.659, allocations: 308.9 kB / 0.9835 GB, free: 183.5 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001097/1.661, allocations: 357.3 kB / 0.9838 GB, free: 183.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001849/1.661, allocations: 70.09 kB / 0.9839 GB, free: 183.4 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001768/1.663, allocations: 1.531 MB / 0.9854 GB, free: 182.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/1.663, allocations: 3.938 kB / 0.9854 GB, free: 182.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002323/1.665, allocations: 1.051 MB / 0.9864 GB, free: 182.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.0003335/1.665, allocations: 157 kB / 0.9866 GB, free: 182.6 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02155/1.687, allocations: 6.477 MB / 0.9929 GB, free: 180.4 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.687, allocations: 0 / 0.9929 GB, free: 180.4 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.01628/1.703, allocations: 4.053 MB / 0.9969 GB, free: 179.1 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004445/1.708, allocations: 1.144 MB / 0.998 GB, free: 178.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/1.72, allocations: 6.878 MB / 1.005 GB, free: 173.4 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001348/1.721, allocations: 2.231 MB / 1.007 GB, free: 171.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/1.722, allocations: 207.4 kB / 1.007 GB, free: 171.1 MB / 0.7325 GB Notification: Performance of SimCode: time 7.71e-07/1.722, allocations: 0 / 1.007 GB, free: 171.1 MB / 0.7325 GB Notification: Performance of Templates: time 0.07039/1.793, allocations: 80.26 MB / 1.085 GB, free: 91.34 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)