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.001666/0.001666, allocations: 104.7 kB / 16.41 MB, free: 6.504 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.001698/0.001698, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.451/1.451, 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.002473/0.002473, allocations: 285.1 kB / 291.5 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 1.013/1.013, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002793/0.002793, allocations: 91.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4661/0.4689, allocations: 86.99 MB / 0.767 GB, free: 4.082 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004698/0.4736, allocations: 3.067 MB / 0.77 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003012/0.4766, allocations: 1.913 MB / 0.7719 GB, free: 15.08 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.4767, allocations: 4 kB / 0.7719 GB, free: 15.07 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009025/0.4776, allocations: 286.8 kB / 0.7722 GB, free: 14.79 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004359/0.4781, allocations: 195.1 kB / 0.7724 GB, free: 14.6 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005696/0.4786, allocations: 245.3 kB / 0.7726 GB, free: 14.36 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004081/0.479, allocations: 330.7 kB / 0.7729 GB, free: 14.04 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003079/0.4794, allocations: 145 kB / 0.7731 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.4795, allocations: 135.5 kB / 0.7732 GB, free: 13.76 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002783/0.4798, allocations: 151.5 kB / 0.7733 GB, free: 13.61 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.85e-05/0.4799, allocations: 20 kB / 0.7734 GB, free: 13.59 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006019/0.4805, allocations: 407.2 kB / 0.7737 GB, free: 13.19 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.4806, allocations: 87.73 kB / 0.7738 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.4807, allocations: 123.4 kB / 0.7739 GB, free: 12.98 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006304/0.4813, allocations: 484.6 kB / 0.7744 GB, free: 12.51 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.4813, allocations: 4 kB / 0.7744 GB, free: 12.51 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.173e-06/0.4813, allocations: 0 / 0.7744 GB, free: 12.51 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.4813, allocations: 0 / 0.7744 GB, free: 12.51 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.0008741/0.4822, allocations: 0.5646 MB / 0.775 GB, free: 11.89 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.4823, allocations: 8.031 kB / 0.775 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00085/0.4831, allocations: 116.6 kB / 0.7751 GB, free: 11.77 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.4835, allocations: 275.9 kB / 0.7753 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.4835, allocations: 16.81 kB / 0.7754 GB, free: 11.45 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.4835, allocations: 20.36 kB / 0.7754 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005772/0.4841, allocations: 349.5 kB / 0.7757 GB, free: 11.07 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.4841, allocations: 11.88 kB / 0.7757 GB, free: 11.06 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.4842, allocations: 8 kB / 0.7757 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-05/0.4842, allocations: 24.42 kB / 0.7758 GB, free: 11.02 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004964/0.4847, allocations: 289.5 kB / 0.776 GB, free: 10.74 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.4872, allocations: 1.741 MB / 0.7777 GB, free: 8.832 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005253/0.4877, allocations: 314.2 kB / 0.778 GB, free: 8.488 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.4879, allocations: 97.67 kB / 0.7781 GB, free: 8.387 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000118/0.488, allocations: 93.03 kB / 0.7782 GB, free: 8.277 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.488, allocations: 46.5 kB / 0.7783 GB, free: 8.223 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.573e-06/0.488, allocations: 0 / 0.7783 GB, free: 8.223 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002573/0.4906, allocations: 0.959 MB / 0.7792 GB, free: 7.23 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.456e-05/0.4907, allocations: 92.97 kB / 0.7793 GB, free: 7.121 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/0.4909, allocations: 215.8 kB / 0.7795 GB, free: 6.898 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.491, allocations: 29.7 kB / 0.7795 GB, free: 6.863 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.4911, allocations: 164.5 kB / 0.7797 GB, free: 6.699 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.939e-05/0.4911, allocations: 95.19 kB / 0.7798 GB, free: 6.605 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.4913, allocations: 65.64 kB / 0.7798 GB, free: 6.535 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.4914, allocations: 326.8 kB / 0.7801 GB, free: 6.207 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.4916, allocations: 131.9 kB / 0.7803 GB, free: 6.078 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.4919, allocations: 209.4 kB / 0.7805 GB, free: 5.84 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005056/0.4924, allocations: 368.2 kB / 0.7808 GB, free: 5.449 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4924, allocations: 4 kB / 0.7808 GB, free: 5.445 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009034/0.4933, allocations: 0.5004 MB / 0.7813 GB, free: 4.926 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.4933, allocations: 4 kB / 0.7813 GB, free: 4.922 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.4933, allocations: 4.312 kB / 0.7813 GB, free: 4.918 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005335/0.4939, allocations: 159.2 kB / 0.7815 GB, free: 4.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.4941, allocations: 51.97 kB / 0.7815 GB, free: 4.699 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003529/0.4976, allocations: 4.19 MB / 0.7856 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.4979, allocations: 27.97 kB / 0.7856 GB, free: 152 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.4979, allocations: 12 kB / 0.7856 GB, free: 140 kB / 0.545 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.0002192/0.4981, allocations: 170.4 kB / 0.7858 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.352e-05/0.4982, allocations: 15.91 kB / 0.7858 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009307/0.4991, allocations: 483.2 kB / 0.7863 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.4991, allocations: 4 kB / 0.7863 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4991, allocations: 4 kB / 0.7863 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.4991, allocations: 96 / 0.7863 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001714/0.5008, allocations: 0.9959 MB / 0.7873 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.5008, allocations: 4 kB / 0.7873 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.501, allocations: 35.91 kB / 0.7873 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004167/0.5014, allocations: 151.6 kB / 0.7874 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.5014, allocations: 4 kB / 0.7874 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003244/0.5047, allocations: 4.166 MB / 0.7915 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.5047, allocations: 4.031 kB / 0.7915 GB, free: 9.648 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008585/0.5055, allocations: 0.621 MB / 0.7921 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.5057, allocations: 128.9 kB / 0.7923 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.5057, allocations: 11.94 kB / 0.7923 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.5059, allocations: 19.98 kB / 0.7923 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.747e-05/0.506, allocations: 23.97 kB / 0.7923 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.506, allocations: 15.94 kB / 0.7923 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000159/0.5062, allocations: 158.1 kB / 0.7925 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5062, allocations: 0 / 0.7925 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005509/0.5067, allocations: 91.92 kB / 0.7926 GB, free: 8.52 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.0002056/0.5069, allocations: 131.1 kB / 0.7927 GB, free: 8.379 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009846/0.5079, allocations: 0.5635 MB / 0.7932 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5079, allocations: 4 kB / 0.7932 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005688/0.5085, allocations: 397.9 kB / 0.7936 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00052/0.509, allocations: 47.25 kB / 0.7937 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.5101, allocations: 0.6246 MB / 0.7943 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.5106, allocations: 0.787 MB / 0.795 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001638/0.5107, allocations: 54.25 kB / 0.7951 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.162e-05/0.5108, allocations: 23.44 kB / 0.7951 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of SimCode: time 3.11e-07/0.5108, allocations: 0 / 0.7951 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of Templates: time 0.009213/0.52, allocations: 4.245 MB / 0.7993 GB, free: 1.555 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)