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.001238/0.001238, allocations: 104 kB / 16.35 MB, free: 5.824 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.001251/0.001251, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.265/1.265, allocations: 222.9 MB / 241 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.002007/0.002007, allocations: 288.8 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9159/0.9159, allocations: 169.3 MB / 0.4989 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 89.48 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1703, allocations: 86.98 MB / 0.6816 GB, free: 7.445 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004257/0.1746, allocations: 3.052 MB / 0.6846 GB, free: 4.375 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002807/0.1774, allocations: 1.925 MB / 0.6865 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.1775, allocations: 4 kB / 0.6865 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008764/0.1784, allocations: 285.7 kB / 0.6867 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004092/0.1788, allocations: 195.1 kB / 0.6869 GB, free: 1.965 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005299/0.1794, allocations: 243.2 kB / 0.6871 GB, free: 1.727 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000352/0.1797, allocations: 323 kB / 0.6875 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.1801, allocations: 173 kB / 0.6876 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.1802, allocations: 139.4 kB / 0.6878 GB, free: 1.102 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.1805, allocations: 155.4 kB / 0.6879 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.283e-05/0.1806, allocations: 20 kB / 0.6879 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005193/0.1811, allocations: 403.2 kB / 0.6883 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.774e-05/0.1812, allocations: 87.8 kB / 0.6884 GB, free: 460 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.1813, allocations: 115.4 kB / 0.6885 GB, free: 344 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3054/0.4867, allocations: 482.8 kB / 0.689 GB, free: 13.26 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.4868, allocations: 0.625 kB / 0.689 GB, free: 13.26 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.4868, allocations: 0.6562 kB / 0.689 GB, free: 13.26 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.4868, allocations: 0 / 0.689 GB, free: 13.26 MB / 494.1 MB 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.001267/0.4881, allocations: 0.5621 MB / 0.6895 GB, free: 12.87 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.4881, allocations: 9.344 kB / 0.6895 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001047/0.4892, allocations: 109 kB / 0.6896 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004586/0.4897, allocations: 277.9 kB / 0.6899 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.4897, allocations: 13.11 kB / 0.6899 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.4897, allocations: 22.28 kB / 0.6899 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000646/0.4904, allocations: 352.2 kB / 0.6903 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.4904, allocations: 4.781 kB / 0.6903 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.4905, allocations: 8.438 kB / 0.6903 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.956e-05/0.4905, allocations: 25.73 kB / 0.6903 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.4911, allocations: 293.4 kB / 0.6906 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.4934, allocations: 1.735 MB / 0.6923 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004951/0.4939, allocations: 326.5 kB / 0.6926 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.4941, allocations: 106.6 kB / 0.6927 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.4942, allocations: 91.69 kB / 0.6928 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.4943, allocations: 38.84 kB / 0.6928 GB, free: 11.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.4943, allocations: 1.781 kB / 0.6928 GB, free: 11.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.00254/0.4968, allocations: 0.9534 MB / 0.6937 GB, free: 10.82 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.4969, allocations: 84.02 kB / 0.6938 GB, free: 10.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.4971, allocations: 211.6 kB / 0.694 GB, free: 10.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.4971, allocations: 31.83 kB / 0.6941 GB, free: 10.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.4972, allocations: 173.8 kB / 0.6942 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.4973, allocations: 76.84 kB / 0.6943 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.4974, allocations: 63.67 kB / 0.6944 GB, free: 10.39 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.406e-05/0.4975, allocations: 331 kB / 0.6947 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.4977, allocations: 130.8 kB / 0.6948 GB, free: 10.08 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.4979, allocations: 213.8 kB / 0.695 GB, free: 9.992 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004593/0.4984, allocations: 366.6 kB / 0.6953 GB, free: 9.906 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4984, allocations: 1.312 kB / 0.6953 GB, free: 9.906 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008923/0.4993, allocations: 0.5087 MB / 0.6958 GB, free: 9.828 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.4994, allocations: 6.094 kB / 0.6959 GB, free: 9.828 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.4994, allocations: 2.969 kB / 0.6959 GB, free: 9.828 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005272/0.4999, allocations: 151.1 kB / 0.696 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.5002, allocations: 59.08 kB / 0.6961 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002408/0.5026, allocations: 4.191 MB / 0.7001 GB, free: 5.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.5028, allocations: 18.94 kB / 0.7002 GB, free: 5.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/0.5029, allocations: 17.78 kB / 0.7002 GB, free: 5.926 MB / 494.1 MB 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.000155/0.503, allocations: 170.9 kB / 0.7003 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-05/0.5031, allocations: 17.47 kB / 0.7004 GB, free: 5.773 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008603/0.504, allocations: 485 kB / 0.7008 GB, free: 5.547 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.504, allocations: 2.656 kB / 0.7008 GB, free: 5.547 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.504, allocations: 1.375 kB / 0.7008 GB, free: 5.547 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.504, allocations: 6.859 kB / 0.7008 GB, free: 5.547 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.5056, allocations: 1.004 MB / 0.7018 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.5056, allocations: 2.031 kB / 0.7018 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.5058, allocations: 33.86 kB / 0.7018 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003963/0.5062, allocations: 148.2 kB / 0.702 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/0.5062, allocations: 7.875 kB / 0.702 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/0.5084, allocations: 4.166 MB / 0.7061 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.5084, allocations: 2.75 kB / 0.7061 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008071/0.5093, allocations: 0.6251 MB / 0.7067 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.5094, allocations: 125.8 kB / 0.7068 GB, free: 340 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.5095, allocations: 17.23 kB / 0.7068 GB, free: 328 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.5097, allocations: 19.69 kB / 0.7068 GB, free: 324 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.5098, allocations: 24.77 kB / 0.7069 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/0.5098, allocations: 12.45 kB / 0.7069 GB, free: 316 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001414/0.5099, allocations: 157.2 kB / 0.707 GB, free: 216 kB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5099, allocations: 4 kB / 0.707 GB, free: 212 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005847/0.5105, allocations: 91.22 kB / 0.7071 GB, free: 196 kB / 494.1 MB 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.0002072/0.5107, allocations: 139 kB / 0.7072 GB, free: 100 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.5118, allocations: 0.5906 MB / 0.7078 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.5119, allocations: 0.75 kB / 0.7078 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005606/0.5124, allocations: 398.7 kB / 0.7082 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005205/0.5129, allocations: 53.75 kB / 0.7083 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.5141, allocations: 0.6205 MB / 0.7089 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004495/0.5146, allocations: 0.7843 MB / 0.7096 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001907/0.5148, allocations: 56.36 kB / 0.7097 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.484e-05/0.5148, allocations: 22 kB / 0.7097 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.5148, allocations: 0 / 0.7097 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of Templates: time 0.01069/0.5255, allocations: 4.168 MB / 0.7138 GB, free: 14.1 MB / 0.4981 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)