Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",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.0008768/0.0008768, allocations: 92.86 kB / 15.7 MB, free: 472 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.0009659/0.0009661, allocations: 172.9 kB / 16.58 MB, free: 5.926 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.309/1.309, allocations: 223.3 MB / 240.6 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6871/0.6871, allocations: 113.7 MB / 405.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002956, allocations: 8 kB / 493.2 MB, free: 8.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1412, allocations: 77.11 MB / 0.5569 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003558/0.1448, allocations: 2.595 MB / 0.5594 GB, free: 9.059 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.1473, allocations: 1.614 MB / 0.561 GB, free: 7.438 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001932/0.1475, allocations: 7.938 kB / 0.561 GB, free: 7.43 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.1477, allocations: 31.72 kB / 0.5611 GB, free: 7.398 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004709/0.1482, allocations: 147.3 kB / 0.5612 GB, free: 7.254 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.1488, allocations: 183.5 kB / 0.5614 GB, free: 7.074 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004948/0.1493, allocations: 414.7 kB / 0.5618 GB, free: 6.668 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007416/0.15, allocations: 390.5 kB / 0.5621 GB, free: 6.262 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002811/0.1503, allocations: 127.5 kB / 0.5623 GB, free: 6.137 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003521/0.1507, allocations: 167.4 kB / 0.5624 GB, free: 5.973 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.1508, allocations: 12 kB / 0.5624 GB, free: 5.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003213/0.1511, allocations: 143.8 kB / 0.5626 GB, free: 5.82 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.1512, allocations: 87.7 kB / 0.5627 GB, free: 5.734 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.08e-05/0.1513, allocations: 73.58 kB / 0.5627 GB, free: 5.656 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.1517, allocations: 339.4 kB / 0.563 GB, free: 5.324 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1518, allocations: 0 / 0.563 GB, free: 5.324 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1518, allocations: 0 / 0.563 GB, free: 5.324 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.1518, allocations: 0 / 0.563 GB, free: 5.324 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.00113/0.1529, allocations: 0.6018 MB / 0.5636 GB, free: 4.668 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.153, allocations: 15.97 kB / 0.5636 GB, free: 4.652 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.503e-05/0.1531, allocations: 54.55 kB / 0.5637 GB, free: 4.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006588/0.1537, allocations: 95.61 kB / 0.5638 GB, free: 4.496 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.1541, allocations: 270.5 kB / 0.5641 GB, free: 4.191 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.1541, allocations: 20.42 kB / 0.5641 GB, free: 4.172 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.958e-05/0.1542, allocations: 24 kB / 0.5641 GB, free: 4.148 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007487/0.1549, allocations: 426.5 kB / 0.5645 GB, free: 3.707 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1549, allocations: 3.938 kB / 0.5645 GB, free: 3.703 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.155, allocations: 12 kB / 0.5645 GB, free: 3.691 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.286e-05/0.155, allocations: 24.34 kB / 0.5645 GB, free: 3.664 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008259/0.1559, allocations: 416.7 kB / 0.5649 GB, free: 3.258 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.1577, allocations: 1.615 MB / 0.5665 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.1587, allocations: 493.2 kB / 0.567 GB, free: 1.016 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003883/0.1591, allocations: 205.6 kB / 0.5672 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.1593, allocations: 93.08 kB / 0.5673 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005232/0.1598, allocations: 283.8 kB / 0.5675 GB, free: 412 kB / 430.1 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.1598, allocations: 0 / 0.5675 GB, free: 412 kB / 430.1 MB Notification: Performance of matching and sorting (n=28): time 0.001721/0.1616, allocations: 0.7834 MB / 0.5683 GB, free: 15.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.1616, allocations: 85.05 kB / 0.5684 GB, free: 15.49 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.1618, allocations: 225 kB / 0.5686 GB, free: 15.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.1619, allocations: 29.7 kB / 0.5686 GB, free: 15.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.162, allocations: 164.3 kB / 0.5688 GB, free: 15.06 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.289e-05/0.1621, allocations: 90.73 kB / 0.5689 GB, free: 14.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/0.1621, allocations: 12 kB / 0.5689 GB, free: 14.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1622, allocations: 330.8 kB / 0.5692 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003748/0.1626, allocations: 184.2 kB / 0.5694 GB, free: 14.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004159/0.163, allocations: 254 kB / 0.5696 GB, free: 14.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004203/0.1635, allocations: 233.8 kB / 0.5698 GB, free: 13.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1635, allocations: 0 / 0.5698 GB, free: 13.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001044/0.1645, allocations: 0.5612 MB / 0.5704 GB, free: 13.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.1647, allocations: 188.2 kB / 0.5706 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1647, allocations: 0 / 0.5706 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002111/0.1649, allocations: 40.83 kB / 0.5706 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003597/0.1653, allocations: 95.8 kB / 0.5707 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.1666, allocations: 1.497 MB / 0.5722 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.1669, allocations: 47.8 kB / 0.5722 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.1669, allocations: 16 kB / 0.5722 GB, free: 11.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.834e-06/0.167, allocations: 4 kB / 0.5722 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009841/0.1679, allocations: 0.5028 MB / 0.5727 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.168, allocations: 4.062 kB / 0.5727 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001199/0.1681, allocations: 44.75 kB / 0.5728 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003226/0.1684, allocations: 92.03 kB / 0.5728 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.1696, allocations: 1.485 MB / 0.5743 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.1699, allocations: 47.92 kB / 0.5743 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.1699, allocations: 16 kB / 0.5744 GB, free: 8.965 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002041/0.1701, allocations: 240.9 kB / 0.5746 GB, free: 8.719 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-05/0.1702, allocations: 27.7 kB / 0.5746 GB, free: 8.691 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009939/0.1712, allocations: 493.4 kB / 0.5751 GB, free: 8.195 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1712, allocations: 4 kB / 0.5751 GB, free: 8.191 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1712, allocations: 0 / 0.5751 GB, free: 8.191 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.1712, allocations: 4 kB / 0.5751 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006149/0.1718, allocations: 0.5623 MB / 0.5756 GB, free: 7.562 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1719, allocations: 0 / 0.5756 GB, free: 7.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003489/0.1722, allocations: 87.84 kB / 0.5757 GB, free: 7.477 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00011/0.1723, allocations: 41.05 kB / 0.5758 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.1724, allocations: 8 kB / 0.5758 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.1734, allocations: 1.416 MB / 0.5772 GB, free: 5.875 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.1734, allocations: 7.984 kB / 0.5772 GB, free: 5.867 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009277/0.1744, allocations: 0.5583 MB / 0.5777 GB, free: 5.281 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.1745, allocations: 136.7 kB / 0.5778 GB, free: 5.129 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.304e-05/0.1746, allocations: 11.95 kB / 0.5779 GB, free: 5.117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002724/0.1748, allocations: 39.95 kB / 0.5779 GB, free: 5.078 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-05/0.1749, allocations: 31.89 kB / 0.5779 GB, free: 5.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.175, allocations: 12 kB / 0.5779 GB, free: 5.035 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001658/0.1751, allocations: 176.5 kB / 0.5781 GB, free: 4.859 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1752, allocations: 0 / 0.5781 GB, free: 4.859 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005586/0.1757, allocations: 128 kB / 0.5782 GB, free: 4.734 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00129/0.177, allocations: 1.118 MB / 0.5793 GB, free: 3.574 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.1788, allocations: 1.012 MB / 0.5803 GB, free: 2.512 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1788, allocations: 0 / 0.5803 GB, free: 2.512 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005692/0.1794, allocations: 342.8 kB / 0.5806 GB, free: 2.164 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.1798, allocations: 40.42 kB / 0.5807 GB, free: 2.125 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003294/0.1831, allocations: 1.985 MB / 0.5826 GB, free: 60 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2327/0.4158, allocations: 0.7779 MB / 0.5834 GB, free: 31.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000385/0.4162, allocations: 95.17 kB / 0.5835 GB, free: 31.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.4164, allocations: 89.59 kB / 0.5835 GB, free: 31.81 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4165, allocations: 0 / 0.5835 GB, free: 31.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.4367, allocations: 6.565 MB / 0.59 GB, free: 31.54 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.4369, allocations: 226 kB / 0.5902 GB, free: 31.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.203, allocations: 0 / 0.5902 GB, free: 31.3 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) Environment - environmentSimulation: