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: translateModel(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007871/0.0007875, allocations: 93.81 kB / 16.02 MB, free: 84 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.0009712/0.0009712, allocations: 181.2 kB / 16.92 MB, free: 6.684 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.433/1.433, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6883/0.6883, allocations: 115.5 MB / 407.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003098, allocations: 11.98 kB / 495.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.149, allocations: 77.53 MB / 0.56 GB, free: 9.004 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003598/0.1527, allocations: 2.704 MB / 0.5626 GB, free: 6.285 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002872/0.1556, allocations: 1.871 MB / 0.5644 GB, free: 4.402 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1557, allocations: 4 kB / 0.5644 GB, free: 4.398 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.1559, allocations: 35.7 kB / 0.5645 GB, free: 4.363 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004832/0.1564, allocations: 203.2 kB / 0.5647 GB, free: 4.164 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005133/0.1569, allocations: 219.5 kB / 0.5649 GB, free: 3.949 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004838/0.1574, allocations: 0.4947 MB / 0.5654 GB, free: 3.453 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007827/0.1582, allocations: 417.9 kB / 0.5658 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001909/0.1584, allocations: 127.5 kB / 0.5659 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003394/0.1587, allocations: 171.4 kB / 0.566 GB, free: 2.738 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.1588, allocations: 16 kB / 0.5661 GB, free: 2.723 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004649/0.1592, allocations: 331.3 kB / 0.5664 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.1593, allocations: 91.7 kB / 0.5665 GB, free: 2.309 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.1595, allocations: 153 kB / 0.5666 GB, free: 2.152 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005176/0.16, allocations: 494.6 kB / 0.5671 GB, free: 1.668 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.16, allocations: 3.938 kB / 0.5671 GB, free: 1.664 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.16, allocations: 0 / 0.5671 GB, free: 1.664 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1601, allocations: 0 / 0.5671 GB, free: 1.664 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.001101/0.1612, allocations: 0.6021 MB / 0.5677 GB, free: 1.008 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.1612, allocations: 8.031 kB / 0.5677 GB, free: 1 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009284/0.1621, allocations: 124.5 kB / 0.5678 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.1625, allocations: 271.7 kB / 0.5681 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.1625, allocations: 20.8 kB / 0.5681 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.742e-05/0.1626, allocations: 28.36 kB / 0.5681 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009084/0.1635, allocations: 442.8 kB / 0.5685 GB, free: 64 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.1635, allocations: 0 / 0.5685 GB, free: 64 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.1635, allocations: 8 kB / 0.5685 GB, free: 56 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.242e-05/0.1636, allocations: 24.36 kB / 0.5686 GB, free: 28 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.1647, allocations: 436.7 kB / 0.569 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.1665, allocations: 1.623 MB / 0.5706 GB, free: 13.85 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.168, allocations: 0.4932 MB / 0.571 GB, free: 13.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000515/0.1686, allocations: 213.6 kB / 0.5712 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001747/0.1687, allocations: 93.08 kB / 0.5713 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006584/0.1694, allocations: 287.3 kB / 0.5716 GB, free: 12.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.793e-06/0.1694, allocations: 0 / 0.5716 GB, free: 12.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.002218/0.1716, allocations: 0.8103 MB / 0.5724 GB, free: 11.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.1717, allocations: 81.11 kB / 0.5725 GB, free: 11.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.1719, allocations: 224.9 kB / 0.5727 GB, free: 11.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.172, allocations: 37.64 kB / 0.5727 GB, free: 11.51 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.1721, allocations: 160.4 kB / 0.5729 GB, free: 11.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.973e-05/0.1722, allocations: 94.64 kB / 0.573 GB, free: 11.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-05/0.1722, allocations: 37.7 kB / 0.573 GB, free: 11.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1724, allocations: 334.8 kB / 0.5733 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004749/0.1729, allocations: 188.2 kB / 0.5735 GB, free: 10.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005098/0.1734, allocations: 261.3 kB / 0.5738 GB, free: 10.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009909/0.1744, allocations: 495.3 kB / 0.5742 GB, free: 9.887 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1744, allocations: 4 kB / 0.5742 GB, free: 9.883 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001287/0.1757, allocations: 0.5729 MB / 0.5748 GB, free: 9.297 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.1758, allocations: 187.1 kB / 0.575 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1758, allocations: 0 / 0.575 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002225/0.1761, allocations: 52.78 kB / 0.575 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004355/0.1765, allocations: 91.8 kB / 0.5751 GB, free: 8.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.1779, allocations: 1.493 MB / 0.5766 GB, free: 7.301 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/0.1783, allocations: 63.92 kB / 0.5766 GB, free: 7.238 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.1783, allocations: 12 kB / 0.5766 GB, free: 7.227 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.772e-06/0.1784, allocations: 4 kB / 0.5766 GB, free: 7.223 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001243/0.1796, allocations: 0.5099 MB / 0.5771 GB, free: 6.703 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-06/0.1796, allocations: 4 kB / 0.5771 GB, free: 6.699 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001336/0.1798, allocations: 40.81 kB / 0.5772 GB, free: 6.656 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000412/0.1802, allocations: 95.97 kB / 0.5773 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.1815, allocations: 1.497 MB / 0.5787 GB, free: 4.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.1818, allocations: 51.83 kB / 0.5788 GB, free: 4.875 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.32e-05/0.1819, allocations: 19.98 kB / 0.5788 GB, free: 4.855 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.000217/0.1821, allocations: 233.1 kB / 0.579 GB, free: 4.617 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.673e-05/0.1821, allocations: 27.66 kB / 0.5791 GB, free: 4.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/0.1833, allocations: 0.4943 MB / 0.5795 GB, free: 4.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.1833, allocations: 4 kB / 0.5795 GB, free: 4.086 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1833, allocations: 0 / 0.5795 GB, free: 4.086 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1834, allocations: 0 / 0.5795 GB, free: 4.086 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006502/0.184, allocations: 0.5662 MB / 0.5801 GB, free: 3.457 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.184, allocations: 4.094 kB / 0.5801 GB, free: 3.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003789/0.1844, allocations: 79.86 kB / 0.5802 GB, free: 3.375 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001135/0.1845, allocations: 40.81 kB / 0.5802 GB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.1846, allocations: 4 kB / 0.5802 GB, free: 3.328 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.1856, allocations: 1.432 MB / 0.5816 GB, free: 1.762 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1857, allocations: 0 / 0.5816 GB, free: 1.762 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.1867, allocations: 0.5615 MB / 0.5822 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.1869, allocations: 136.7 kB / 0.5823 GB, free: 1.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.277e-05/0.1869, allocations: 8 kB / 0.5823 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003602/0.1873, allocations: 43.95 kB / 0.5823 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-05/0.1874, allocations: 27.95 kB / 0.5824 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.1874, allocations: 12 kB / 0.5824 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000206/0.1876, allocations: 180.5 kB / 0.5826 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.645e-06/0.1876, allocations: 0 / 0.5826 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005758/0.1882, allocations: 139.9 kB / 0.5827 GB, free: 0.6172 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.0001528/0.1884, allocations: 111.2 kB / 0.5828 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2748/0.4631, allocations: 1.021 MB / 0.5838 GB, free: 30.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.4632, allocations: 1.781 kB / 0.5838 GB, free: 30.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.4643, allocations: 342.9 kB / 0.5841 GB, free: 30.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008191/0.4651, allocations: 53.33 kB / 0.5842 GB, free: 30.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.4671, allocations: 0.7284 MB / 0.5849 GB, free: 30.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.4676, allocations: 0.79 MB / 0.5857 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005136/0.4681, allocations: 102.5 kB / 0.5857 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.4682, allocations: 25.86 kB / 0.5858 GB, free: 29.66 MB / 446.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4682, allocations: 0 / 0.5858 GB, free: 29.66 MB / 446.1 MB Notification: Performance of Templates: time 0.01435/0.4826, allocations: 4.386 MB / 0.5901 GB, free: 29.53 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (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 & ./IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)