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.001271/0.001272, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001198/0.001198, allocations: 193.2 kB / 16.14 MB, free: 6.66 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.27/1.27, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001892/0.001892, allocations: 278.5 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9094/0.9094, allocations: 169.2 MB / 0.4977 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 94.47 kB / 0.5946 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1455, allocations: 86.98 MB / 0.6795 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004026/0.1495, allocations: 3.097 MB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002455/0.152, allocations: 1.938 MB / 0.6845 GB, free: 12.03 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.676e-05/0.1521, allocations: 10.16 kB / 0.6845 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007213/0.1528, allocations: 267.1 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000326/0.1532, allocations: 176.8 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.1536, allocations: 211.9 kB / 0.6851 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003876/0.154, allocations: 450.7 kB / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.1543, allocations: 169.9 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.1544, allocations: 111.6 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.1547, allocations: 151.4 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/0.1547, allocations: 16 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005603/0.1553, allocations: 471.1 kB / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.061e-05/0.1554, allocations: 79.78 kB / 0.6865 GB, free: 9.961 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.1555, allocations: 115.3 kB / 0.6866 GB, free: 9.848 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005009/0.156, allocations: 0.4947 MB / 0.6871 GB, free: 9.352 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.156, allocations: 4 kB / 0.6871 GB, free: 9.348 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.156, allocations: 0 / 0.6871 GB, free: 9.348 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.137e-06/0.156, allocations: 4 kB / 0.6871 GB, free: 9.344 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.000689/0.1567, allocations: 0.5574 MB / 0.6876 GB, free: 8.738 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1568, allocations: 12.03 kB / 0.6876 GB, free: 8.727 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.554e-05/0.1568, allocations: 54.73 kB / 0.6877 GB, free: 8.664 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007372/0.1576, allocations: 112.5 kB / 0.6878 GB, free: 8.555 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.1579, allocations: 259.9 kB / 0.688 GB, free: 8.262 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.1579, allocations: 12.81 kB / 0.6881 GB, free: 8.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.535e-05/0.1579, allocations: 20.38 kB / 0.6881 GB, free: 8.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.1584, allocations: 357.1 kB / 0.6884 GB, free: 7.859 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.1584, allocations: 3.984 kB / 0.6884 GB, free: 7.855 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.762e-05/0.1585, allocations: 12 kB / 0.6884 GB, free: 7.844 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.423e-05/0.1585, allocations: 20.42 kB / 0.6885 GB, free: 7.824 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004116/0.1589, allocations: 297.5 kB / 0.6887 GB, free: 7.535 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.1608, allocations: 1.737 MB / 0.6904 GB, free: 5.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004295/0.1612, allocations: 326.1 kB / 0.6907 GB, free: 5.273 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.1613, allocations: 109.7 kB / 0.6908 GB, free: 5.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001068/0.1615, allocations: 89.09 kB / 0.6909 GB, free: 5.055 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.1615, allocations: 34.5 kB / 0.691 GB, free: 5.012 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.323e-06/0.1615, allocations: 0 / 0.691 GB, free: 5.012 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002234/0.1637, allocations: 0.9722 MB / 0.6919 GB, free: 4.004 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.993e-05/0.1638, allocations: 85.05 kB / 0.692 GB, free: 3.902 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.164, allocations: 212.4 kB / 0.6922 GB, free: 3.688 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.164, allocations: 29.7 kB / 0.6922 GB, free: 3.652 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.726e-05/0.1641, allocations: 168.2 kB / 0.6924 GB, free: 3.484 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/0.1642, allocations: 78.84 kB / 0.6925 GB, free: 3.406 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.109e-05/0.1643, allocations: 65.72 kB / 0.6925 GB, free: 3.336 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1644, allocations: 326.8 kB / 0.6928 GB, free: 3.008 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.1646, allocations: 131.9 kB / 0.693 GB, free: 2.879 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.1648, allocations: 214.5 kB / 0.6932 GB, free: 2.637 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.1652, allocations: 365.6 kB / 0.6935 GB, free: 2.25 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1652, allocations: 7.938 kB / 0.6935 GB, free: 2.242 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007998/0.166, allocations: 0.5082 MB / 0.694 GB, free: 1.715 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.1661, allocations: 4 kB / 0.694 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.1661, allocations: 4 kB / 0.694 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004718/0.1665, allocations: 147.4 kB / 0.6942 GB, free: 1.551 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.1668, allocations: 59.91 kB / 0.6942 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002697/0.1695, allocations: 3.973 MB / 0.6981 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.1697, allocations: 15.98 kB / 0.6981 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.1697, allocations: 16 kB / 0.6981 GB, free: 13.17 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.0001681/0.1699, allocations: 165.8 kB / 0.6983 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.77e-05/0.17, allocations: 23.72 kB / 0.6983 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007763/0.1707, allocations: 475.4 kB / 0.6988 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1708, allocations: 4 kB / 0.6988 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1708, allocations: 8 kB / 0.6988 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1708, allocations: 3.938 kB / 0.6988 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.1721, allocations: 1.002 MB / 0.6998 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1722, allocations: 4 kB / 0.6998 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.1723, allocations: 28.23 kB / 0.6998 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004149/0.1727, allocations: 167.2 kB / 0.7 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.1727, allocations: 8 kB / 0.7 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002457/0.1752, allocations: 3.942 MB / 0.7038 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.1752, allocations: 4.031 kB / 0.7038 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007118/0.1759, allocations: 0.6288 MB / 0.7044 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.176, allocations: 128.8 kB / 0.7046 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.1761, allocations: 8 kB / 0.7046 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.1763, allocations: 19.98 kB / 0.7046 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.749e-05/0.1764, allocations: 27.91 kB / 0.7046 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.1764, allocations: 8 kB / 0.7046 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001228/0.1765, allocations: 161.4 kB / 0.7048 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.1765, allocations: 0 / 0.7048 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004439/0.177, allocations: 95.98 kB / 0.7049 GB, free: 5.766 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.001021/0.178, allocations: 1.198 MB / 0.706 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000782/0.1788, allocations: 0.5712 MB / 0.7066 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1788, allocations: 0 / 0.7066 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000471/0.1793, allocations: 414.2 kB / 0.707 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004686/0.1798, allocations: 43.97 kB / 0.707 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.1834, allocations: 3.422 MB / 0.7104 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.1837, allocations: 0.783 MB / 0.7111 GB, free: 15 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001607/0.1839, allocations: 54.25 kB / 0.7112 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.922e-05/0.184, allocations: 75.41 kB / 0.7113 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of SimCode: time 2.41e-07/0.184, allocations: 0 / 0.7113 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0199/0.2039, allocations: 6.376 MB / 0.7175 GB, free: 8.688 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/0.2041, allocations: 255 kB / 0.7177 GB, free: 8.43 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/1.938, allocations: 0 / 0.7177 GB, free: 8.43 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)