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.0007419/0.0007419, allocations: 98.11 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.0007458/0.0007458, allocations: 181.4 kB / 16.92 MB, free: 6.898 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: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6535/0.6535, allocations: 115.5 MB / 407.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.0003039, allocations: 8.688 kB / 496 MB, free: 6.219 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.136, allocations: 77.53 MB / 0.56 GB, free: 8.895 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003358/0.1395, allocations: 2.708 MB / 0.5627 GB, free: 6.172 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.1421, allocations: 1.706 MB / 0.5644 GB, free: 4.457 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.1423, allocations: 3.938 kB / 0.5644 GB, free: 4.453 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.1425, allocations: 35.7 kB / 0.5644 GB, free: 4.418 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005488/0.143, allocations: 187.2 kB / 0.5646 GB, free: 4.234 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006535/0.1437, allocations: 231.5 kB / 0.5648 GB, free: 4.008 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000541/0.1443, allocations: 0.4946 MB / 0.5653 GB, free: 3.512 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000764/0.145, allocations: 414.5 kB / 0.5657 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.1453, allocations: 119.5 kB / 0.5658 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003445/0.1457, allocations: 171.3 kB / 0.566 GB, free: 2.805 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.718e-05/0.1457, allocations: 16 kB / 0.566 GB, free: 2.789 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004756/0.1462, allocations: 311.4 kB / 0.5663 GB, free: 2.484 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.1463, allocations: 83.72 kB / 0.5663 GB, free: 2.402 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.1465, allocations: 157 kB / 0.5665 GB, free: 2.242 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005727/0.1471, allocations: 466.7 kB / 0.5669 GB, free: 1.785 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1471, allocations: 0 / 0.5669 GB, free: 1.785 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1471, allocations: 0 / 0.5669 GB, free: 1.785 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1471, allocations: 0 / 0.5669 GB, free: 1.785 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.001104/0.1482, allocations: 0.602 MB / 0.5675 GB, free: 1.129 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1483, allocations: 12.03 kB / 0.5675 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.728e-05/0.1483, allocations: 58.73 kB / 0.5676 GB, free: 1.051 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006886/0.149, allocations: 96.45 kB / 0.5677 GB, free: 0.957 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.1494, allocations: 279.7 kB / 0.568 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.1494, allocations: 16.81 kB / 0.568 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.088e-05/0.1495, allocations: 20.36 kB / 0.568 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007547/0.1502, allocations: 434.7 kB / 0.5684 GB, free: 156 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1502, allocations: 4 kB / 0.5684 GB, free: 152 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.1503, allocations: 4 kB / 0.5684 GB, free: 148 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.283e-05/0.1503, allocations: 32.34 kB / 0.5684 GB, free: 112 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008773/0.1512, allocations: 412.8 kB / 0.5688 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.1529, allocations: 1.619 MB / 0.5704 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.1541, allocations: 485 kB / 0.5709 GB, free: 13.47 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000421/0.1545, allocations: 206.2 kB / 0.5711 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001338/0.1546, allocations: 97.08 kB / 0.5712 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005284/0.1552, allocations: 284 kB / 0.5714 GB, free: 12.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.1552, allocations: 0 / 0.5714 GB, free: 12.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.001813/0.157, allocations: 0.7845 MB / 0.5722 GB, free: 12.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.1571, allocations: 77.11 kB / 0.5723 GB, free: 11.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.1573, allocations: 232.9 kB / 0.5725 GB, free: 11.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.1573, allocations: 33.7 kB / 0.5725 GB, free: 11.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/0.1574, allocations: 160.4 kB / 0.5727 GB, free: 11.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.529e-05/0.1575, allocations: 98.64 kB / 0.5728 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.323e-05/0.1576, allocations: 33.7 kB / 0.5728 GB, free: 11.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1577, allocations: 338.8 kB / 0.5731 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.1581, allocations: 184.1 kB / 0.5733 GB, free: 10.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004326/0.1586, allocations: 253.3 kB / 0.5736 GB, free: 10.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008604/0.1594, allocations: 479.4 kB / 0.574 GB, free: 10.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1594, allocations: 4 kB / 0.574 GB, free: 10.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001115/0.1606, allocations: 0.5605 MB / 0.5746 GB, free: 9.496 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.1607, allocations: 191 kB / 0.5747 GB, free: 9.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.1607, allocations: 0 / 0.5747 GB, free: 9.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002046/0.1609, allocations: 40.83 kB / 0.5748 GB, free: 9.227 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.1613, allocations: 91.86 kB / 0.5749 GB, free: 9.137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.1626, allocations: 1.497 MB / 0.5763 GB, free: 7.504 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.1629, allocations: 59.72 kB / 0.5764 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/0.163, allocations: 12 kB / 0.5764 GB, free: 7.434 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.532e-06/0.163, allocations: 4 kB / 0.5764 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001035/0.164, allocations: 0.4982 MB / 0.5769 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.164, allocations: 4 kB / 0.5769 GB, free: 6.918 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001246/0.1642, allocations: 48.75 kB / 0.5769 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.1645, allocations: 84.03 kB / 0.577 GB, free: 6.785 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.1656, allocations: 1.497 MB / 0.5785 GB, free: 5.148 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.1659, allocations: 43.81 kB / 0.5785 GB, free: 5.105 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.19e-05/0.166, allocations: 23.97 kB / 0.5785 GB, free: 5.082 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 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * 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 (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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001966/0.1662, allocations: 238.1 kB / 0.5788 GB, free: 4.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.349e-05/0.1662, allocations: 23.72 kB / 0.5788 GB, free: 4.816 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.1673, allocations: 494.1 kB / 0.5793 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1673, allocations: 8 kB / 0.5793 GB, free: 4.316 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1673, allocations: 0 / 0.5793 GB, free: 4.316 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.1673, allocations: 3.984 kB / 0.5793 GB, free: 4.312 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005808/0.1679, allocations: 0.57 MB / 0.5798 GB, free: 3.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1679, allocations: 0 / 0.5798 GB, free: 3.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003643/0.1683, allocations: 83.95 kB / 0.5799 GB, free: 3.598 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001165/0.1684, allocations: 40.94 kB / 0.58 GB, free: 3.555 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.1684, allocations: 8 kB / 0.58 GB, free: 3.547 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000978/0.1694, allocations: 1.416 MB / 0.5813 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1694, allocations: 0 / 0.5813 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009922/0.1704, allocations: 0.5661 MB / 0.5819 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.1706, allocations: 136.7 kB / 0.582 GB, free: 1.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.1706, allocations: 4 kB / 0.582 GB, free: 1.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003034/0.1709, allocations: 43.95 kB / 0.5821 GB, free: 1.203 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.776e-05/0.171, allocations: 31.95 kB / 0.5821 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.1711, allocations: 12 kB / 0.5821 GB, free: 1.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.1712, allocations: 172.4 kB / 0.5823 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1712, allocations: 0 / 0.5823 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005318/0.1718, allocations: 132 kB / 0.5824 GB, free: 0.8633 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 (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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2208/0.3926, allocations: 1.109 MB / 0.5835 GB, free: 30.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001915/0.3945, allocations: 1.015 MB / 0.5845 GB, free: 29.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3945, allocations: 1.781 kB / 0.5845 GB, free: 29.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006005/0.3951, allocations: 337.9 kB / 0.5848 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004859/0.3956, allocations: 53.42 kB / 0.5849 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004706/0.4004, allocations: 3.497 MB / 0.5883 GB, free: 28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.4006, allocations: 0.7852 MB / 0.589 GB, free: 27.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002968/0.4009, allocations: 98.2 kB / 0.5891 GB, free: 27.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.4011, allocations: 87.89 kB / 0.5892 GB, free: 27.29 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4011, allocations: 0 / 0.5892 GB, free: 27.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3367/0.7378, allocations: 6.56 MB / 0.5956 GB, free: 26.95 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.7381, allocations: 244 kB / 0.5959 GB, free: 26.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/2.426, allocations: 0 / 0.5959 GB, free: 26.7 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/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)