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: "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001224, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 194.8 kB / 16.53 MB, free: 6.391 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002029/0.002029, allocations: 297 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9245/0.9245, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 95.06 kB / 0.5953 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1278, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004261/0.1321, allocations: 3.063 MB / 0.6833 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00256/0.1347, allocations: 1.916 MB / 0.6851 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.925e-05/0.1348, allocations: 4 kB / 0.6852 GB, free: 11.58 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008033/0.1356, allocations: 278.9 kB / 0.6854 GB, free: 11.31 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003885/0.136, allocations: 199.1 kB / 0.6856 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000519/0.1366, allocations: 243.2 kB / 0.6858 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002959/0.1369, allocations: 322.9 kB / 0.6861 GB, free: 10.56 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002755/0.1371, allocations: 181 kB / 0.6863 GB, free: 10.38 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.1373, allocations: 131.5 kB / 0.6864 GB, free: 10.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.1375, allocations: 147.4 kB / 0.6866 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.433e-05/0.1376, allocations: 24 kB / 0.6866 GB, free: 10.08 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005321/0.1381, allocations: 399.2 kB / 0.687 GB, free: 9.691 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.201e-05/0.1382, allocations: 87.78 kB / 0.6871 GB, free: 9.605 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1384, allocations: 119.4 kB / 0.6872 GB, free: 9.488 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005155/0.1389, allocations: 490.7 kB / 0.6877 GB, free: 9.008 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1389, allocations: 0 / 0.6877 GB, free: 9.008 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1389, allocations: 0 / 0.6877 GB, free: 9.008 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1389, allocations: 0 / 0.6877 GB, free: 9.008 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.0007642/0.1397, allocations: 0.5575 MB / 0.6882 GB, free: 8.402 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.1397, allocations: 8.031 kB / 0.6882 GB, free: 8.395 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.528e-05/0.1398, allocations: 62.72 kB / 0.6883 GB, free: 8.324 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007599/0.1406, allocations: 108.5 kB / 0.6884 GB, free: 8.219 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.1408, allocations: 263.8 kB / 0.6886 GB, free: 7.922 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.1409, allocations: 16.8 kB / 0.6886 GB, free: 7.906 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.585e-05/0.1409, allocations: 20.38 kB / 0.6887 GB, free: 7.887 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004962/0.1414, allocations: 357.2 kB / 0.689 GB, free: 7.512 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1414, allocations: 0 / 0.689 GB, free: 7.512 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.1415, allocations: 8 kB / 0.689 GB, free: 7.504 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.738e-05/0.1415, allocations: 20.42 kB / 0.689 GB, free: 7.484 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004234/0.1419, allocations: 293.5 kB / 0.6893 GB, free: 7.199 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00188/0.1438, allocations: 1.749 MB / 0.691 GB, free: 5.281 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004526/0.1443, allocations: 326.1 kB / 0.6913 GB, free: 4.926 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.1445, allocations: 113.6 kB / 0.6914 GB, free: 4.809 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.561e-05/0.1446, allocations: 85.09 kB / 0.6915 GB, free: 4.707 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.1446, allocations: 34.56 kB / 0.6915 GB, free: 4.664 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.273e-06/0.1446, allocations: 3.938 kB / 0.6916 GB, free: 4.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002485/0.1471, allocations: 0.9731 MB / 0.6925 GB, free: 3.652 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.1471, allocations: 81.05 kB / 0.6926 GB, free: 3.555 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.1473, allocations: 212.4 kB / 0.6928 GB, free: 3.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.1474, allocations: 37.69 kB / 0.6928 GB, free: 3.297 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.1475, allocations: 172.1 kB / 0.693 GB, free: 3.125 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.01e-05/0.1475, allocations: 70.91 kB / 0.693 GB, free: 3.055 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.224e-05/0.1476, allocations: 61.7 kB / 0.6931 GB, free: 2.988 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1477, allocations: 330.8 kB / 0.6934 GB, free: 2.656 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.1479, allocations: 131.9 kB / 0.6935 GB, free: 2.527 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.1482, allocations: 219.1 kB / 0.6938 GB, free: 2.281 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004358/0.1486, allocations: 369.5 kB / 0.6941 GB, free: 1.891 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1486, allocations: 0 / 0.6941 GB, free: 1.891 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008047/0.1494, allocations: 0.5081 MB / 0.6946 GB, free: 1.363 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.1495, allocations: 9.875 kB / 0.6946 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1495, allocations: 0 / 0.6946 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004762/0.1499, allocations: 151.5 kB / 0.6948 GB, free: 1.195 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.1502, allocations: 59.91 kB / 0.6948 GB, free: 1.137 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002852/0.1531, allocations: 4.19 MB / 0.6989 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001938/0.1533, allocations: 23.89 kB / 0.6989 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.1533, allocations: 12 kB / 0.6989 GB, free: 12.58 MB / 0.4981 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.0001555/0.1535, allocations: 173.7 kB / 0.6991 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.862e-05/0.1535, allocations: 19.81 kB / 0.6991 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008491/0.1544, allocations: 478 kB / 0.6996 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1544, allocations: 3.938 kB / 0.6996 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1544, allocations: 4 kB / 0.6996 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.78e-06/0.1544, allocations: 3.984 kB / 0.6996 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.1559, allocations: 0.992 MB / 0.7006 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.156, allocations: 8.25 kB / 0.7006 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.1561, allocations: 43.91 kB / 0.7006 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003832/0.1565, allocations: 135.3 kB / 0.7007 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.1565, allocations: 8 kB / 0.7008 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002702/0.1592, allocations: 4.178 MB / 0.7048 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1593, allocations: 7.969 kB / 0.7048 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007745/0.16, allocations: 0.6255 MB / 0.7054 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.1602, allocations: 136.7 kB / 0.7056 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.1602, allocations: 11.91 kB / 0.7056 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.1605, allocations: 27.97 kB / 0.7056 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.108e-05/0.1605, allocations: 19.92 kB / 0.7056 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.1605, allocations: 8 kB / 0.7056 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001441/0.1607, allocations: 161.5 kB / 0.7058 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1607, allocations: 0 / 0.7058 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004927/0.1612, allocations: 88 kB / 0.7059 GB, free: 4.941 MB / 0.4981 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.001088/0.1623, allocations: 1.194 MB / 0.707 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009575/0.1633, allocations: 0.5977 MB / 0.7076 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.974e-06/0.1633, allocations: 4 kB / 0.7076 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005397/0.1638, allocations: 408.5 kB / 0.708 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.1644, allocations: 43.16 kB / 0.7081 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004089/0.1684, allocations: 3.323 MB / 0.7113 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.1688, allocations: 0.787 MB / 0.7121 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001812/0.169, allocations: 62.22 kB / 0.7121 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.1691, allocations: 67.42 kB / 0.7122 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.1691, allocations: 0 / 0.7122 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4148/0.5839, allocations: 6.619 MB / 0.7187 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.42, allocations: 12.5 kB / 0.7187 GB, free: 7.664 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)