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.001187/0.001187, 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.001237/0.001237, allocations: 193.3 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.284/1.284, 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.001998/0.001998, allocations: 283 kB / 290.2 MB, free: 2.199 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8973/0.8973, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 89.78 kB / 0.5946 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1434, allocations: 86.98 MB / 0.6795 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004903/0.1484, allocations: 3.777 MB / 0.6832 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002612/0.151, allocations: 1.801 MB / 0.685 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.1512, allocations: 19.88 kB / 0.685 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007468/0.152, allocations: 239 kB / 0.6852 GB, free: 11.2 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005036/0.1525, allocations: 274.7 kB / 0.6855 GB, free: 10.93 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004627/0.153, allocations: 230.3 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006251/0.1536, allocations: 0.7452 MB / 0.6865 GB, free: 9.961 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.154, allocations: 249.8 kB / 0.6867 GB, free: 9.715 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002678/0.1543, allocations: 207.1 kB / 0.6869 GB, free: 9.512 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002688/0.1546, allocations: 231 kB / 0.6871 GB, free: 9.285 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.924e-05/0.1546, allocations: 20 kB / 0.6871 GB, free: 9.266 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004729/0.1551, allocations: 347.3 kB / 0.6875 GB, free: 8.926 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.1552, allocations: 115.6 kB / 0.6876 GB, free: 8.812 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.1554, allocations: 198.8 kB / 0.6878 GB, free: 8.617 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005654/0.156, allocations: 0.5956 MB / 0.6883 GB, free: 8.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.156, allocations: 0 / 0.6883 GB, free: 8.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.156, allocations: 0 / 0.6883 GB, free: 8.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.156, allocations: 3.938 kB / 0.6883 GB, free: 8.016 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.001103/0.1571, allocations: 0.7324 MB / 0.6891 GB, free: 7.234 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.1572, allocations: 8.031 kB / 0.6891 GB, free: 7.227 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.62e-05/0.1573, allocations: 70.72 kB / 0.6891 GB, free: 7.148 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008202/0.1581, allocations: 132.2 kB / 0.6893 GB, free: 7.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.1586, allocations: 371.7 kB / 0.6896 GB, free: 6.617 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.1586, allocations: 21.03 kB / 0.6896 GB, free: 6.598 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.1586, allocations: 36.34 kB / 0.6897 GB, free: 6.562 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007543/0.1594, allocations: 0.5508 MB / 0.6902 GB, free: 5.941 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.1594, allocations: 4 kB / 0.6902 GB, free: 5.938 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.1595, allocations: 12 kB / 0.6902 GB, free: 5.926 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.377e-05/0.1595, allocations: 40.53 kB / 0.6903 GB, free: 5.887 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006415/0.1602, allocations: 413.7 kB / 0.6907 GB, free: 5.484 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.1627, allocations: 3.345 MB / 0.6939 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006175/0.1633, allocations: 339.9 kB / 0.6942 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.1636, allocations: 184.6 kB / 0.6944 GB, free: 1.363 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.1636, allocations: 4 kB / 0.6944 GB, free: 1.359 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.1636, allocations: 30.56 kB / 0.6945 GB, free: 1.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=26): time 1.373e-06/0.1637, allocations: 0 / 0.6945 GB, free: 1.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.001854/0.1655, allocations: 1.067 MB / 0.6955 GB, free: 188 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.1656, allocations: 55.64 kB / 0.6956 GB, free: 120 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.1659, allocations: 333.6 kB / 0.6959 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1659, allocations: 33.7 kB / 0.6959 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.166, allocations: 239.6 kB / 0.6961 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.301e-05/0.1661, allocations: 102.5 kB / 0.6962 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.1662, allocations: 82.03 kB / 0.6963 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.1663, allocations: 342.8 kB / 0.6966 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.1666, allocations: 156.7 kB / 0.6968 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003155/0.1669, allocations: 286.5 kB / 0.6971 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006053/0.1676, allocations: 491.2 kB / 0.6975 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.1676, allocations: 4 kB / 0.6975 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008872/0.1685, allocations: 0.5538 MB / 0.6981 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1685, allocations: 8 kB / 0.6981 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1685, allocations: 4 kB / 0.6981 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002885/0.1688, allocations: 94.97 kB / 0.6982 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.1691, allocations: 83.89 kB / 0.6983 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.1691, allocations: 19.86 kB / 0.6983 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.1694, allocations: 31.97 kB / 0.6983 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.1694, allocations: 16 kB / 0.6983 GB, free: 13.1 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.000163/0.1696, allocations: 166.4 kB / 0.6985 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.103e-05/0.1696, allocations: 43.53 kB / 0.6985 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008059/0.1705, allocations: 467.9 kB / 0.699 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1705, allocations: 4 kB / 0.699 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1705, allocations: 0 / 0.699 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1705, allocations: 4 kB / 0.699 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.1718, allocations: 0.9598 MB / 0.6999 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.1718, allocations: 4 kB / 0.6999 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.172, allocations: 51.89 kB / 0.7 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002238/0.1722, allocations: 82.61 kB / 0.7 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.1723, allocations: 8 kB / 0.7 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1723, allocations: 0 / 0.7 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1723, allocations: 0 / 0.7 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000752/0.173, allocations: 0.5472 MB / 0.7006 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.1732, allocations: 140.5 kB / 0.7007 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.1732, allocations: 11.94 kB / 0.7007 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1734, allocations: 23.91 kB / 0.7007 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.1735, allocations: 31.83 kB / 0.7008 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.1735, allocations: 12 kB / 0.7008 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001989/0.1737, allocations: 235.2 kB / 0.701 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.253e-06/0.1738, allocations: 0 / 0.701 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003777/0.1741, allocations: 87.94 kB / 0.7011 GB, free: 10.09 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.001006/0.1751, allocations: 1.089 MB / 0.7022 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000787/0.1759, allocations: 0.6352 MB / 0.7028 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.176, allocations: 0 / 0.7028 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003928/0.1764, allocations: 431 kB / 0.7032 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006263/0.177, allocations: 119.5 kB / 0.7033 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.1813, allocations: 3.903 MB / 0.7071 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.1816, allocations: 0.8192 MB / 0.7079 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000249/0.1819, allocations: 79.36 kB / 0.708 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.1821, allocations: 127.4 kB / 0.7081 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.1821, allocations: 0 / 0.7081 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01923/0.2013, allocations: 7.906 MB / 0.7158 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002731/0.2016, allocations: 249 kB / 0.7161 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/1.9, allocations: 3.938 kB / 0.7161 GB, free: 10.55 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)