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.001228/0.001229, 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.001299/0.001299, allocations: 192.4 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002713/0.002713, allocations: 287 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.11/1.11, allocations: 178.6 MB / 0.5073 GB, free: 4.57 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002914/0.002914, allocations: 97.34 kB / 0.6065 GB, free: 24.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1559, allocations: 89.15 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005087/0.161, allocations: 3.065 MB / 0.6966 GB, free: 1.156 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003182/0.1643, allocations: 1.916 MB / 0.6985 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.1645, allocations: 7.938 kB / 0.6985 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009683/0.1654, allocations: 279.5 kB / 0.6987 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004786/0.1659, allocations: 189.6 kB / 0.6989 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006382/0.1666, allocations: 254.5 kB / 0.6992 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000386/0.167, allocations: 314.9 kB / 0.6995 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003314/0.1673, allocations: 187.3 kB / 0.6996 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.1675, allocations: 131.5 kB / 0.6998 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002739/0.1678, allocations: 155.4 kB / 0.6999 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.02e-05/0.1678, allocations: 20 kB / 0.6999 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006109/0.1684, allocations: 403.2 kB / 0.7003 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.1686, allocations: 83.78 kB / 0.7004 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.1687, allocations: 123.3 kB / 0.7005 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006023/0.1693, allocations: 482.7 kB / 0.701 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1693, allocations: 0 / 0.701 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.122e-06/0.1693, allocations: 0 / 0.701 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.1693, allocations: 0 / 0.701 GB, free: 12.66 MB / 0.4981 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.0008435/0.1702, allocations: 0.5672 MB / 0.7015 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.1702, allocations: 12.03 kB / 0.7015 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.476e-05/0.1703, allocations: 58.72 kB / 0.7016 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007892/0.1711, allocations: 104.5 kB / 0.7017 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000316/0.1714, allocations: 267.8 kB / 0.702 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.1714, allocations: 8.812 kB / 0.702 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.1715, allocations: 20.38 kB / 0.702 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.172, allocations: 361.2 kB / 0.7023 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1721, allocations: 0 / 0.7023 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/0.1721, allocations: 8 kB / 0.7023 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.66e-05/0.1721, allocations: 24.42 kB / 0.7024 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004786/0.1726, allocations: 293.5 kB / 0.7026 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.1748, allocations: 1.741 MB / 0.7043 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005156/0.1754, allocations: 326.1 kB / 0.7046 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.1756, allocations: 105.6 kB / 0.7047 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.1757, allocations: 89.09 kB / 0.7048 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.1757, allocations: 42.56 kB / 0.7049 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.1757, allocations: 3.938 kB / 0.7049 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.002554/0.1783, allocations: 0.955 MB / 0.7058 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.1784, allocations: 89.17 kB / 0.7059 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.1786, allocations: 215.7 kB / 0.7061 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.1786, allocations: 25.7 kB / 0.7061 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1788, allocations: 172.1 kB / 0.7063 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.035e-05/0.1788, allocations: 78.91 kB / 0.7064 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.1789, allocations: 61.61 kB / 0.7064 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.1791, allocations: 334.8 kB / 0.7067 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.1793, allocations: 127.9 kB / 0.7069 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.1796, allocations: 209.3 kB / 0.7071 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.1801, allocations: 374.5 kB / 0.7074 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1801, allocations: 4 kB / 0.7074 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009038/0.181, allocations: 0.5002 MB / 0.7079 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.1811, allocations: 8.297 kB / 0.7079 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1811, allocations: 8 kB / 0.7079 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005361/0.1816, allocations: 147.3 kB / 0.7081 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.1819, allocations: 59.91 kB / 0.7081 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003418/0.1853, allocations: 4.198 MB / 0.7122 GB, free: 272 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.1855, allocations: 19.97 kB / 0.7122 GB, free: 252 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.1856, allocations: 16 kB / 0.7123 GB, free: 236 kB / 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.0001721/0.1857, allocations: 166.9 kB / 0.7124 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.309e-05/0.1858, allocations: 19.81 kB / 0.7124 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009206/0.1867, allocations: 474.5 kB / 0.7129 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1868, allocations: 7.938 kB / 0.7129 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.1868, allocations: 0 / 0.7129 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.1868, allocations: 11.98 kB / 0.7129 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.1884, allocations: 1.002 MB / 0.7139 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1884, allocations: 0 / 0.7139 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.1886, allocations: 35.97 kB / 0.7139 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004204/0.189, allocations: 143.5 kB / 0.7141 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.189, allocations: 8 kB / 0.7141 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00327/0.1923, allocations: 4.171 MB / 0.7181 GB, free: 9.754 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.1923, allocations: 7.938 kB / 0.7181 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008544/0.1932, allocations: 0.6248 MB / 0.7188 GB, free: 9.07 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.1934, allocations: 136.7 kB / 0.7189 GB, free: 8.918 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.1934, allocations: 4 kB / 0.7189 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.1936, allocations: 15.98 kB / 0.7189 GB, free: 8.898 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/0.1937, allocations: 27.91 kB / 0.7189 GB, free: 8.871 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.1937, allocations: 12 kB / 0.7189 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001582/0.1939, allocations: 160.1 kB / 0.7191 GB, free: 8.703 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1939, allocations: 3.938 kB / 0.7191 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004951/0.1944, allocations: 92 kB / 0.7192 GB, free: 8.609 MB / 0.5137 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.001247/0.1956, allocations: 1.211 MB / 0.7204 GB, free: 7.332 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009946/0.1967, allocations: 0.591 MB / 0.7209 GB, free: 6.719 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1967, allocations: 0 / 0.7209 GB, free: 6.719 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005816/0.1973, allocations: 401.1 kB / 0.7213 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005068/0.1978, allocations: 39.16 kB / 0.7214 GB, free: 6.266 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004337/0.2021, allocations: 3.338 MB / 0.7246 GB, free: 2.707 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.2026, allocations: 0.7753 MB / 0.7254 GB, free: 1.906 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001786/0.2027, allocations: 62.23 kB / 0.7254 GB, free: 1.848 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.2029, allocations: 67.42 kB / 0.7255 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of SimCode: time 2.6e-07/0.2029, allocations: 3.938 kB / 0.7255 GB, free: 1.777 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.612/1.814, allocations: 6.63 MB / 0.732 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/13.59, allocations: 12.7 kB / 0.732 GB, free: 11.3 MB / 0.5294 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)