Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.0009012/0.0009012, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.006303/0.006304, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.292/1.292, allocations: 223.2 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00169/0.00169, allocations: 262.9 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9111/0.9111, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004057/0.0004057, allocations: 13.31 kB / 0.5988 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1486, allocations: 88.55 MB / 0.6852 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.003711/0.1524, allocations: 3.391 MB / 0.6886 GB, free: 11.52 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002459/0.1549, allocations: 1.769 MB / 0.6903 GB, free: 9.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.155, allocations: 15.88 kB / 0.6903 GB, free: 9.734 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001842/0.1552, allocations: 60.56 kB / 0.6904 GB, free: 9.676 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000574/0.1558, allocations: 269.7 kB / 0.6906 GB, free: 9.414 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004576/0.1563, allocations: 236.7 kB / 0.6908 GB, free: 9.188 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000617/0.1569, allocations: 0.7375 MB / 0.6916 GB, free: 8.449 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006204/0.1575, allocations: 364 kB / 0.6919 GB, free: 8.078 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.1578, allocations: 211 kB / 0.6921 GB, free: 7.871 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.1581, allocations: 215 kB / 0.6923 GB, free: 7.66 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.194e-05/0.1581, allocations: 16 kB / 0.6923 GB, free: 7.645 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004449/0.1586, allocations: 339.3 kB / 0.6927 GB, free: 7.312 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.1587, allocations: 111.6 kB / 0.6928 GB, free: 7.203 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000177/0.1589, allocations: 216.5 kB / 0.693 GB, free: 6.984 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005329/0.1594, allocations: 0.58 MB / 0.6935 GB, free: 6.402 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1594, allocations: 0 / 0.6935 GB, free: 6.402 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.558e-06/0.1594, allocations: 0 / 0.6935 GB, free: 6.402 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1595, allocations: 3.938 kB / 0.6935 GB, free: 6.398 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009262/0.1604, allocations: 0.6624 MB / 0.6942 GB, free: 5.688 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1604, allocations: 12.03 kB / 0.6942 GB, free: 5.676 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.718e-05/0.1605, allocations: 74.66 kB / 0.6943 GB, free: 5.594 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008134/0.1613, allocations: 132.2 kB / 0.6944 GB, free: 5.465 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004024/0.1617, allocations: 375.7 kB / 0.6948 GB, free: 5.059 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.1618, allocations: 25.02 kB / 0.6948 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.312e-05/0.1618, allocations: 28.38 kB / 0.6948 GB, free: 5.008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007352/0.1626, allocations: 0.5625 MB / 0.6954 GB, free: 4.375 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.1626, allocations: 7.906 kB / 0.6954 GB, free: 4.367 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.1626, allocations: 15.98 kB / 0.6954 GB, free: 4.352 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-05/0.1627, allocations: 40.53 kB / 0.6954 GB, free: 4.312 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006711/0.1634, allocations: 425.7 kB / 0.6958 GB, free: 3.898 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.1658, allocations: 3.337 MB / 0.6991 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/0.1664, allocations: 342 kB / 0.6994 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002924/0.1668, allocations: 188.7 kB / 0.6996 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.1668, allocations: 4 kB / 0.6996 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.1668, allocations: 30.56 kB / 0.6996 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=26): time 1.262e-06/0.1668, allocations: 4 kB / 0.6996 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=27): time 0.001901/0.1687, allocations: 1.087 MB / 0.7007 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.1688, allocations: 55.64 kB / 0.7007 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.1691, allocations: 341.5 kB / 0.7011 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.1691, allocations: 29.7 kB / 0.7011 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.1693, allocations: 247.6 kB / 0.7013 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.356e-05/0.1693, allocations: 98.59 kB / 0.7014 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.238e-05/0.1694, allocations: 37.7 kB / 0.7015 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1695, allocations: 342.8 kB / 0.7018 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/0.1698, allocations: 160.7 kB / 0.7019 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.1701, allocations: 298.5 kB / 0.7022 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006254/0.1707, allocations: 495.2 kB / 0.7027 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1707, allocations: 0 / 0.7027 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009156/0.1717, allocations: 0.566 MB / 0.7032 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.1717, allocations: 8 kB / 0.7033 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1717, allocations: 4 kB / 0.7033 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002758/0.172, allocations: 86.45 kB / 0.7033 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003211/0.1723, allocations: 91.88 kB / 0.7034 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.1723, allocations: 20.03 kB / 0.7034 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.1726, allocations: 31.97 kB / 0.7035 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.1726, allocations: 12 kB / 0.7035 GB, free: 11.51 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001607/0.1728, allocations: 174.4 kB / 0.7037 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.08e-05/0.1729, allocations: 39.53 kB / 0.7037 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008575/0.1737, allocations: 479.9 kB / 0.7041 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1737, allocations: 4 kB / 0.7042 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.1738, allocations: 3.984 kB / 0.7042 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1738, allocations: 3.984 kB / 0.7042 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.1751, allocations: 0.9793 MB / 0.7051 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1751, allocations: 4 kB / 0.7051 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000224/0.1753, allocations: 51.84 kB / 0.7052 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002227/0.1755, allocations: 86.5 kB / 0.7053 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.1756, allocations: 4 kB / 0.7053 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1756, allocations: 4 kB / 0.7053 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1756, allocations: 3.938 kB / 0.7053 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007714/0.1764, allocations: 0.558 MB / 0.7058 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.1765, allocations: 140.5 kB / 0.7059 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.338e-05/0.1765, allocations: 8 kB / 0.706 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.1768, allocations: 27.91 kB / 0.706 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.523e-05/0.1768, allocations: 27.84 kB / 0.706 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.1769, allocations: 12 kB / 0.706 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001973/0.1771, allocations: 243.2 kB / 0.7062 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1771, allocations: 0 / 0.7062 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003845/0.1775, allocations: 84 kB / 0.7063 GB, free: 8.441 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001021/0.1785, allocations: 1.103 MB / 0.7074 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007904/0.1793, allocations: 0.6433 MB / 0.708 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1793, allocations: 0 / 0.708 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004134/0.1797, allocations: 437.7 kB / 0.7085 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.1804, allocations: 120.3 kB / 0.7086 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004585/0.185, allocations: 3.95 MB / 0.7124 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.1854, allocations: 0.8192 MB / 0.7132 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002517/0.1857, allocations: 79.34 kB / 0.7133 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.1859, allocations: 119.4 kB / 0.7134 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1859, allocations: 7.938 kB / 0.7134 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/0.2048, allocations: 7.796 MB / 0.721 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.205, allocations: 248.4 kB / 0.7213 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/1.937, allocations: 6.938 kB / 0.7213 GB, free: 8.965 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)