Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.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.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005771/0.005771, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001406/0.001406, allocations: 197.2 kB / 16.68 MB, free: 5.969 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.263/1.263, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002053/0.002053, allocations: 288.9 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9156/0.9156, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 92.22 kB / 0.6814 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3784, allocations: 86.97 MB / 0.7664 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004077/0.3825, allocations: 3.069 MB / 0.7694 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002599/0.3851, allocations: 1.898 MB / 0.7712 GB, free: 14.93 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.971e-05/0.3852, allocations: 4 kB / 0.7712 GB, free: 14.93 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008137/0.386, allocations: 282.9 kB / 0.7715 GB, free: 14.65 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003744/0.3864, allocations: 195.1 kB / 0.7717 GB, free: 14.46 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004969/0.3869, allocations: 257.2 kB / 0.7719 GB, free: 14.21 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003153/0.3873, allocations: 330.6 kB / 0.7722 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.3876, allocations: 177 kB / 0.7724 GB, free: 13.71 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.3877, allocations: 131.5 kB / 0.7725 GB, free: 13.58 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002538/0.388, allocations: 147.5 kB / 0.7727 GB, free: 13.43 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.506e-05/0.388, allocations: 20 kB / 0.7727 GB, free: 13.41 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005602/0.3886, allocations: 407.2 kB / 0.7731 GB, free: 13.02 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.454e-05/0.3887, allocations: 83.8 kB / 0.7732 GB, free: 12.93 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.3888, allocations: 127.3 kB / 0.7733 GB, free: 12.81 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005405/0.3894, allocations: 480.2 kB / 0.7737 GB, free: 12.34 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3894, allocations: 4 kB / 0.7737 GB, free: 12.34 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.502e-06/0.3894, allocations: 0 / 0.7737 GB, free: 12.34 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.3894, allocations: 4 kB / 0.7737 GB, free: 12.34 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007268/0.3901, allocations: 0.5684 MB / 0.7743 GB, free: 11.72 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.3902, allocations: 12.03 kB / 0.7743 GB, free: 11.71 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007774/0.3909, allocations: 112.7 kB / 0.7744 GB, free: 11.6 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.3912, allocations: 269.5 kB / 0.7747 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3913, allocations: 16.81 kB / 0.7747 GB, free: 11.28 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.3913, allocations: 24.36 kB / 0.7747 GB, free: 11.26 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.3918, allocations: 353.4 kB / 0.7751 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.3918, allocations: 8 kB / 0.7751 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.3919, allocations: 4 kB / 0.7751 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.025e-05/0.3919, allocations: 28.42 kB / 0.7751 GB, free: 10.85 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.3924, allocations: 293.5 kB / 0.7754 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.3943, allocations: 1.73 MB / 0.7771 GB, free: 8.668 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004547/0.3948, allocations: 326.1 kB / 0.7774 GB, free: 8.312 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.3949, allocations: 109.7 kB / 0.7775 GB, free: 8.199 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.797e-05/0.395, allocations: 89.05 kB / 0.7776 GB, free: 8.094 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.3951, allocations: 34.56 kB / 0.7776 GB, free: 8.051 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.323e-06/0.3951, allocations: 4 kB / 0.7776 GB, free: 8.047 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002369/0.3974, allocations: 0.9694 MB / 0.7785 GB, free: 7.043 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.3975, allocations: 85.05 kB / 0.7786 GB, free: 6.941 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001951/0.3977, allocations: 211.8 kB / 0.7788 GB, free: 6.723 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.3977, allocations: 29.7 kB / 0.7789 GB, free: 6.688 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.55e-05/0.3978, allocations: 172.5 kB / 0.779 GB, free: 6.516 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.973e-05/0.3979, allocations: 91.25 kB / 0.7791 GB, free: 6.426 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.398, allocations: 61.66 kB / 0.7792 GB, free: 6.359 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3981, allocations: 326.8 kB / 0.7795 GB, free: 6.031 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.3983, allocations: 127.9 kB / 0.7796 GB, free: 5.906 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.3986, allocations: 217.3 kB / 0.7798 GB, free: 5.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004524/0.399, allocations: 359.7 kB / 0.7801 GB, free: 5.277 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.399, allocations: 7.938 kB / 0.7802 GB, free: 5.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008512/0.3999, allocations: 0.5153 MB / 0.7807 GB, free: 4.738 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.3999, allocations: 4 kB / 0.7807 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3999, allocations: 7.938 kB / 0.7807 GB, free: 4.727 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004999/0.4004, allocations: 151.6 kB / 0.7808 GB, free: 4.566 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.4007, allocations: 59.89 kB / 0.7809 GB, free: 4.508 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002907/0.4036, allocations: 4.19 MB / 0.785 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.4038, allocations: 19.94 kB / 0.785 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.4038, allocations: 11.98 kB / 0.785 GB, free: 15.95 MB / 0.5606 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.404, allocations: 170.5 kB / 0.7852 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.65e-05/0.4041, allocations: 15.91 kB / 0.7852 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008468/0.4049, allocations: 482.4 kB / 0.7856 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.4049, allocations: 4 kB / 0.7856 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.405, allocations: 0 / 0.7856 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.405, allocations: 0 / 0.7856 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.4064, allocations: 1.006 MB / 0.7866 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.4065, allocations: 7.938 kB / 0.7866 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.4066, allocations: 27.98 kB / 0.7867 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000387/0.407, allocations: 151.5 kB / 0.7868 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.407, allocations: 4 kB / 0.7868 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002733/0.4098, allocations: 4.167 MB / 0.7909 GB, free: 9.469 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.4098, allocations: 7.969 kB / 0.7909 GB, free: 9.461 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007511/0.4105, allocations: 0.6133 MB / 0.7915 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.4107, allocations: 124.9 kB / 0.7916 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.691e-05/0.4107, allocations: 11.94 kB / 0.7916 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.4109, allocations: 23.98 kB / 0.7916 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.411, allocations: 23.91 kB / 0.7917 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.411, allocations: 8 kB / 0.7917 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000141/0.4112, allocations: 166.1 kB / 0.7918 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4112, allocations: 0 / 0.7918 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004652/0.4116, allocations: 83.94 kB / 0.7919 GB, free: 8.348 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001894/0.4118, allocations: 144.9 kB / 0.792 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000897/0.4127, allocations: 0.583 MB / 0.7926 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4128, allocations: 0 / 0.7926 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005149/0.4133, allocations: 405 kB / 0.793 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.4138, allocations: 47.16 kB / 0.793 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009347/0.4147, allocations: 0.6392 MB / 0.7937 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.4151, allocations: 0.7831 MB / 0.7944 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001529/0.4153, allocations: 58.23 kB / 0.7945 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.759e-05/0.4153, allocations: 19.44 kB / 0.7945 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.4153, allocations: 0 / 0.7945 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of Templates: time 0.007683/0.423, allocations: 4.208 MB / 0.7986 GB, free: 1.375 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)