Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Loads_Examples_Resistor",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.0008992/0.000899, allocations: 98.73 kB / 16.02 MB, free: 80 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.000825/0.000825, allocations: 179.4 kB / 16.92 MB, free: 6.918 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.294/1.294, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6562/0.6562, allocations: 115.5 MB / 407.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003247/0.0003248, allocations: 8.281 kB / 496 MB, free: 6.301 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1534, allocations: 77.52 MB / 0.56 GB, free: 8.988 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Loads.Examples.Resistor): time 0.004792/0.1582, allocations: 3.471 MB / 0.5634 GB, free: 5.5 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002983/0.1613, allocations: 1.713 MB / 0.5651 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.1616, allocations: 4 kB / 0.5651 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002827/0.1619, allocations: 59.5 kB / 0.5652 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006602/0.1626, allocations: 219.1 kB / 0.5654 GB, free: 3.504 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006307/0.1632, allocations: 187.6 kB / 0.5655 GB, free: 3.32 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000811/0.164, allocations: 0.6622 MB / 0.5662 GB, free: 2.656 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004873/0.1645, allocations: 318.5 kB / 0.5665 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002919/0.1648, allocations: 151.4 kB / 0.5666 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004753/0.1653, allocations: 211.2 kB / 0.5668 GB, free: 1.977 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.833e-05/0.1654, allocations: 16 kB / 0.5669 GB, free: 1.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005314/0.1659, allocations: 311.3 kB / 0.5672 GB, free: 1.656 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.166, allocations: 99.7 kB / 0.5673 GB, free: 1.559 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002149/0.1663, allocations: 184.8 kB / 0.5674 GB, free: 1.371 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006283/0.1669, allocations: 0.5022 MB / 0.5679 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1669, allocations: 0 / 0.5679 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1669, allocations: 0 / 0.5679 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.1669, allocations: 0 / 0.5679 GB, free: 0.8672 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009756/0.1679, allocations: 0.5713 MB / 0.5685 GB, free: 256 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.168, allocations: 8.031 kB / 0.5685 GB, free: 248 kB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.712e-05/0.1681, allocations: 70.72 kB / 0.5685 GB, free: 168 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009063/0.169, allocations: 136.4 kB / 0.5687 GB, free: 32 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003883/0.1694, allocations: 287.7 kB / 0.569 GB, free: 15.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.1694, allocations: 21.03 kB / 0.569 GB, free: 15.69 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.513e-05/0.1695, allocations: 32.34 kB / 0.569 GB, free: 15.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006645/0.1701, allocations: 463.7 kB / 0.5694 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1702, allocations: 3.938 kB / 0.5695 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.1702, allocations: 12 kB / 0.5695 GB, free: 15.15 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.352e-05/0.1703, allocations: 36.53 kB / 0.5695 GB, free: 15.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005315/0.1708, allocations: 314 kB / 0.5698 GB, free: 14.81 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.1732, allocations: 2.201 MB / 0.5719 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003958/0.1736, allocations: 255.8 kB / 0.5722 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.1738, allocations: 108.8 kB / 0.5723 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.1739, allocations: 4 kB / 0.5723 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.1739, allocations: 38.56 kB / 0.5723 GB, free: 11.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.1739, allocations: 0 / 0.5723 GB, free: 11.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006426/0.1746, allocations: 303.5 kB / 0.5726 GB, free: 11.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.1746, allocations: 51.41 kB / 0.5727 GB, free: 11.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002869/0.1749, allocations: 274.5 kB / 0.5729 GB, free: 11.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.1749, allocations: 29.7 kB / 0.573 GB, free: 11.26 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1751, allocations: 207.9 kB / 0.5732 GB, free: 11.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.421e-05/0.1751, allocations: 51.3 kB / 0.5732 GB, free: 11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.1752, allocations: 21.7 kB / 0.5732 GB, free: 10.98 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1753, allocations: 342.8 kB / 0.5736 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.239e-05/0.1754, allocations: 52.44 kB / 0.5736 GB, free: 10.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.1755, allocations: 148.9 kB / 0.5737 GB, free: 10.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.1758, allocations: 219.8 kB / 0.574 GB, free: 10.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.1758, allocations: 4 kB / 0.574 GB, free: 10.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004/0.1762, allocations: 260.6 kB / 0.5742 GB, free: 9.875 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.1763, allocations: 8 kB / 0.5742 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1763, allocations: 4.453 kB / 0.5742 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001465/0.1764, allocations: 36.78 kB / 0.5743 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.1766, allocations: 43.92 kB / 0.5743 GB, free: 9.781 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.1777, allocations: 1.323 MB / 0.5756 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.1779, allocations: 27.69 kB / 0.5756 GB, free: 8.297 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.1779, allocations: 8 kB / 0.5756 GB, free: 8.289 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.1781, allocations: 161.8 kB / 0.5758 GB, free: 8.121 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.038e-05/0.1782, allocations: 31.64 kB / 0.5758 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.357e-05/0.1782, allocations: 37.92 kB / 0.5758 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1783, allocations: 0 / 0.5758 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1783, allocations: 4 kB / 0.5759 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.1783, allocations: 0 / 0.5759 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008991/0.1792, allocations: 0.7101 MB / 0.5765 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1792, allocations: 0 / 0.5765 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.532e-05/0.1793, allocations: 27.92 kB / 0.5766 GB, free: 7.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.033e-05/0.1794, allocations: 24.84 kB / 0.5766 GB, free: 7.195 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.1794, allocations: 4 kB / 0.5766 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009298/0.1803, allocations: 1.316 MB / 0.5779 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1803, allocations: 0 / 0.5779 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003347/0.1807, allocations: 317.2 kB / 0.5782 GB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.1808, allocations: 124.8 kB / 0.5783 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.1808, allocations: 0 / 0.5783 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.181, allocations: 12 kB / 0.5783 GB, free: 5.246 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.881e-05/0.181, allocations: 11.98 kB / 0.5783 GB, free: 5.234 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.779e-06/0.181, allocations: 4 kB / 0.5783 GB, free: 5.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001787/0.1812, allocations: 193.9 kB / 0.5785 GB, free: 5.047 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.693e-06/0.1812, allocations: 4 kB / 0.5785 GB, free: 5.043 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003813/0.1816, allocations: 91.62 kB / 0.5786 GB, free: 4.953 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005946/0.1822, allocations: 0.8391 MB / 0.5794 GB, free: 4.062 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004262/0.1827, allocations: 276.5 kB / 0.5797 GB, free: 3.781 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1827, allocations: 96 / 0.5797 GB, free: 3.781 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.1829, allocations: 190.5 kB / 0.5799 GB, free: 3.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004875/0.1834, allocations: 58.33 kB / 0.5799 GB, free: 3.527 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003066/0.1865, allocations: 2.836 MB / 0.5827 GB, free: 0.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.243/0.4295, allocations: 0.7872 MB / 0.5835 GB, free: 30.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.4297, allocations: 45.14 kB / 0.5835 GB, free: 30.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.4299, allocations: 85.02 kB / 0.5836 GB, free: 30.4 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4299, allocations: 0 / 0.5836 GB, free: 30.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.4495, allocations: 4.956 MB / 0.5884 GB, free: 30.12 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/0.4497, allocations: 224.1 kB / 0.5886 GB, free: 29.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/2.179, allocations: 4 kB / 0.5886 GB, free: 29.86 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Electrical_DC_Loads_Examples_Resistor.fmu > IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)