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.001241/0.001241, allocations: 106.6 kB / 16.41 MB, free: 6.465 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.001278/0.001278, allocations: 187 kB / 17.34 MB, free: 5.719 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.431/1.431, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00306/0.00306, allocations: 290 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9767/0.9767, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 95.84 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4261, allocations: 86.97 MB / 0.767 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004416/0.4306, allocations: 3.075 MB / 0.77 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002835/0.4334, allocations: 1.894 MB / 0.7719 GB, free: 14.95 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.4336, allocations: 4 kB / 0.7719 GB, free: 14.95 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008891/0.4345, allocations: 282.9 kB / 0.7722 GB, free: 14.67 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003973/0.4349, allocations: 195.1 kB / 0.7723 GB, free: 14.48 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005725/0.4355, allocations: 249.2 kB / 0.7726 GB, free: 14.24 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.4358, allocations: 326.7 kB / 0.7729 GB, free: 13.92 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003301/0.4362, allocations: 185 kB / 0.7731 GB, free: 13.73 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.4363, allocations: 131.5 kB / 0.7732 GB, free: 13.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002832/0.4366, allocations: 147.5 kB / 0.7733 GB, free: 13.46 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.977e-05/0.4367, allocations: 20 kB / 0.7733 GB, free: 13.44 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005635/0.4373, allocations: 403.2 kB / 0.7737 GB, free: 13.04 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.849e-05/0.4374, allocations: 91.73 kB / 0.7738 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.4375, allocations: 119.5 kB / 0.7739 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005625/0.4381, allocations: 493.1 kB / 0.7744 GB, free: 12.36 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4381, allocations: 0 / 0.7744 GB, free: 12.36 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4381, allocations: 0 / 0.7744 GB, free: 12.36 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.4381, allocations: 0 / 0.7744 GB, free: 12.36 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.0008234/0.4389, allocations: 0.5575 MB / 0.775 GB, free: 11.75 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.439, allocations: 8.031 kB / 0.775 GB, free: 11.74 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008019/0.4398, allocations: 116.5 kB / 0.7751 GB, free: 11.63 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002952/0.4401, allocations: 271.4 kB / 0.7753 GB, free: 11.33 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.4401, allocations: 20.8 kB / 0.7753 GB, free: 11.31 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.3e-05/0.4402, allocations: 16.38 kB / 0.7754 GB, free: 11.29 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.4407, allocations: 357.4 kB / 0.7757 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.4407, allocations: 0 / 0.7757 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.4407, allocations: 8 kB / 0.7757 GB, free: 10.92 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.052e-05/0.4408, allocations: 28.42 kB / 0.7757 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004379/0.4412, allocations: 293.5 kB / 0.776 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.4433, allocations: 1.733 MB / 0.7777 GB, free: 8.699 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004772/0.4438, allocations: 326 kB / 0.778 GB, free: 8.344 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.4439, allocations: 105.7 kB / 0.7781 GB, free: 8.234 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.4441, allocations: 101 kB / 0.7782 GB, free: 8.117 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.4441, allocations: 30.56 kB / 0.7782 GB, free: 8.078 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.4441, allocations: 0 / 0.7782 GB, free: 8.078 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002388/0.4465, allocations: 0.9695 MB / 0.7792 GB, free: 7.074 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.4466, allocations: 85.05 kB / 0.7793 GB, free: 6.973 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.4468, allocations: 203.9 kB / 0.7795 GB, free: 6.762 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.4468, allocations: 29.7 kB / 0.7795 GB, free: 6.727 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.4469, allocations: 172.1 kB / 0.7797 GB, free: 6.555 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.803e-05/0.447, allocations: 82.84 kB / 0.7797 GB, free: 6.473 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-05/0.4471, allocations: 61.59 kB / 0.7798 GB, free: 6.406 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4472, allocations: 334.8 kB / 0.7801 GB, free: 6.07 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.4474, allocations: 127.9 kB / 0.7802 GB, free: 5.945 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.4476, allocations: 213.3 kB / 0.7804 GB, free: 5.703 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.4481, allocations: 363.6 kB / 0.7808 GB, free: 5.316 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4481, allocations: 0 / 0.7808 GB, free: 5.316 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008258/0.4489, allocations: 0.5116 MB / 0.7813 GB, free: 4.789 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.4489, allocations: 7.938 kB / 0.7813 GB, free: 4.781 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.449, allocations: 8 kB / 0.7813 GB, free: 4.773 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004943/0.4495, allocations: 151.3 kB / 0.7815 GB, free: 4.613 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002439/0.4497, allocations: 55.91 kB / 0.7815 GB, free: 4.559 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003006/0.4527, allocations: 4.19 MB / 0.7856 GB, free: 36 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.453, allocations: 19.92 kB / 0.7856 GB, free: 16 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.453, allocations: 16.14 kB / 0.7856 GB, free: 0 / 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.0001754/0.4532, allocations: 166.4 kB / 0.7858 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.818e-05/0.4532, allocations: 15.81 kB / 0.7858 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008296/0.4541, allocations: 482.4 kB / 0.7863 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.4541, allocations: 4 kB / 0.7863 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.4541, allocations: 0 / 0.7863 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.4541, allocations: 0 / 0.7863 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001527/0.4556, allocations: 1.006 MB / 0.7873 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.4557, allocations: 4 kB / 0.7873 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.4558, allocations: 36.17 kB / 0.7873 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000376/0.4562, allocations: 151.2 kB / 0.7874 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.4562, allocations: 4.094 kB / 0.7874 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002868/0.4591, allocations: 4.162 MB / 0.7915 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4591, allocations: 4.031 kB / 0.7915 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007762/0.4599, allocations: 0.6209 MB / 0.7921 GB, free: 8.844 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.46, allocations: 124.8 kB / 0.7922 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.4601, allocations: 11.94 kB / 0.7922 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.4603, allocations: 19.98 kB / 0.7923 GB, free: 8.672 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.4604, allocations: 23.91 kB / 0.7923 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.4604, allocations: 8 kB / 0.7923 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001525/0.4605, allocations: 166.1 kB / 0.7925 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4605, allocations: 0 / 0.7925 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005028/0.4611, allocations: 88 kB / 0.7925 GB, free: 8.395 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.000213/0.4613, allocations: 139 kB / 0.7927 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009332/0.4622, allocations: 0.5831 MB / 0.7932 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4622, allocations: 0 / 0.7932 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005372/0.4628, allocations: 406.1 kB / 0.7936 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.4633, allocations: 43.91 kB / 0.7937 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.4644, allocations: 0.67 MB / 0.7943 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.4648, allocations: 0.7831 MB / 0.7951 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.711e-05/0.4649, allocations: 23.44 kB / 0.7951 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of SimCode: time 3.4e-07/0.4649, allocations: 4 kB / 0.7951 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of Templates: time 0.01017/0.4751, allocations: 7.629 MB / 0.8026 GB, free: 13.99 MB / 0.5762 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)